Class to aid in the parsing and creating of Protocol Buffer Messages This class should be included by the developer before they use a generated protobuf class.
| author |
Andrew Brampton |
|---|---|
| package |
LOG_PHP_SDK |
get_wiretype( $wire_type)
read_double( $fp)
read_field( $fp, $wire_type, &$limit = null)
read_float( $fp)
read_int32( $fp)
read_int64( $fp)
read_uint32( $fp)
read_uint64( $fp)
read_varint( $fp, &$limit = null)
| returns |
the Varint from the stream, or false if the stream has reached eof. |
|---|---|
read_zint32( $fp)
read_zint64( $fp)
size_varint( $i)
skip_field( $fp, $wire_type)
skip_varint( $fp)
toString( $key, $value)
write_double( $fp, $d)
write_float( $fp, $f)
write_int32( $fp, $i)
write_int64( $fp, $i)
write_uint32( $fp, $i)
write_uint64( $fp, $i)
write_varint( $fp, $i) : \The
The int to encode
\Thenumber of bytes written
write_zint32( $fp, $i)
write_zint64( $fp, $i)
TYPE_DOUBLE
TYPE_FLOAT
TYPE_INT64
TYPE_UINT64
TYPE_INT32
TYPE_FIXED64
TYPE_FIXED32
TYPE_BOOL
TYPE_STRING
TYPE_GROUP
TYPE_MESSAGE
TYPE_BYTES
TYPE_UINT32
TYPE_ENUM
TYPE_SFIXED32
TYPE_SFIXED64
TYPE_SINT32
TYPE_SINT64
print_depth :
indent_char :
print_limit :