private function readHeader(FlashorbBinaryReader $stream) { return new Header($stream->readUTF(), $stream->readBoolean(), $stream->readInteger($stream), $this->readData($stream)); }
private function readHeader(FlashorbBinaryReader $reader) { Log::log(LoggingConstants::DEBUG, "Called"); $nameLength = $reader->readUnsignedShort(); $name = $reader->readBytes($nameLength); $mustUnderstand = $reader->readBoolean(); $length = $reader->readInteger(); //$reader->readBytes($length); return new Header($name, $mustUnderstand, $length, self::readData($reader, null, null)); }
public function read(FlashorbBinaryReader $reader, ParseContext $parseContext) { return new BooleanType($this->m_initialized ? $this->m_val : $reader->readBoolean()); }