$stream :
$classref :
$fieldsref :
__construct( $stream)
serialize( $var)
writeInteger( $integer)
writeLong( $long)
writeDouble( $double)
writeNaN()
writeInfinity( $positive = true)
writeNull()
writeEmpty()
writeBoolean( $bool)
writeDate( $date, $checkRef = false)
writeTime( $time, $checkRef = false)
writeBytes( $bytes, $checkRef = false)
writeUTF8Char( $char)
writeString( $str, $checkRef = false)
writeList( $list, $checkRef = false)
writeMap( $map, $checkRef = false)
writeStdObject( $obj, $checkRef = false)
writeObject( $obj, $checkRef = false)
reset()
writeObjectBegin( $obj)
writeObjectEnd( $obj, $index)
writeClass( $alias, $fields)