Reverse Proto Writer
class ReverseProtoWriter
Encodes protocol buffer message fields from back-to-front for efficiency. Callers should write data in the opposite order that the data will be read.
One significant benefit of writing messages in reverse order is that length prefixes can be computed in constant time. Get the length of a message by subtracting the byteCount before writing it from byteCount after writing it.
Utilities for encoding and writing protocol message fields.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Write a little-endian 32-bit integer.
Link copied to clipboard
Write a little-endian 64-bit integer.
Link copied to clipboard
Link copied to clipboard
Encode and write a tag.
Link copied to clipboard
Encode and write a varint. value
is treated as unsigned, so it won't be sign-extended if negative.
Link copied to clipboard
Encode and write a varint.