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; }
public function read(FlashorbBinaryReader $reader, ParseContext $parseContext) { return new DateType(new ORBDateTime($reader->readDouble(), $reader->readUnsignedShort())); }
public function read(FlashorbBinaryReader $reader, ParseContext $parseContext) { return new NumberObject($reader->readDouble()); }