- readTag
Attempt to read a field tag, returning zero if we have reached EOF. Protocol
message parsers use thi
- readMessage
Read an embedded message field value from the stream.
- readBytes
Read a bytes field value from the stream.
- readInt32
Read an int32 field value from the stream.
- readEnum
Read an enum field value from the stream. Caller is responsible for converting
the numeric value to
- readBool
Read a bool field value from the stream.
- readInt64
Read an int64 field value from the stream.
- readStringRequireUtf8
Read a string field value from the stream. If the stream contains malformed
UTF-8, throw exception I
- readRawVarint32
Reads a varint from the input one byte at a time, so that it does not read any
bytes after the end o
- pushLimit
Sets currentLimit to (current position) + byteLimit. This is called when
descending into a length-de
- popLimit
Discards the current limit, returning to the previous limit.
- getBytesUntilLimit
Returns the number of bytes to be read before the current limit. If no limit is
set, returns -1.