public function readBytes()
{
$tag = $this->stream->getc();
switch ($tag) {
case Tags::TagNull:
return null;
case Tags::TagEmpty:
return '';
case Tags::TagBytes:
return $this->readBytesWithoutTag();
case Tags::TagRef:
return $this->readRef();
default:
throw $this->unexpectedTag($tag);
}
}