CodeExplorer readBoolean example
$type =
$this->stream->
readByte();
switch ($type) { // Double
case 0:
$value =
$this->
readDouble();
break;
// Boolean
case 1:
$value =
$this->
readBoolean();
break;
// String
case 2:
$value =
$this->
readString();
break;
// Object
case 3:
$value =
$this->
readObject();
break;