示例#1
0
 public function read(FlashorbBinaryReader $reader, ParseContext $parseContext)
 {
     $refId = $reader->readVarInteger();
     if (($refId & 0x1) == 0) {
         return $parseContext->getReference($refId >> 1);
     }
     $dateTime = $reader->readDouble();
     $dateType = new DateType(new ORBDateTime($dateTime, 0));
     $parseContext->addReference($dateType);
     return $dateType;
 }
示例#2
0
 public function read(FlashorbBinaryReader $reader, ParseContext $parseContext)
 {
     return new DateType(new ORBDateTime($reader->readDouble(), $reader->readUnsignedShort()));
 }
示例#3
0
 public function read(FlashorbBinaryReader $reader, ParseContext $parseContext)
 {
     return new NumberObject($reader->readDouble());
 }