Documentation ¶
Overview ¶
Package protowire parses and formats the raw wire encoding. See https://developers.google.com/protocol-buffers/docs/encoding.
For marshaling and unmarshaling entire protobuf messages, use the "google.golang.org/protobuf/proto" package instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFixed32 ¶
AppendFixed32 appends v to b as a little-endian uint32.
func AppendFixed64 ¶
AppendFixed64 appends v to b as a little-endian uint64.
func AppendVarint ¶
AppendVarint appends v to b as a varint-encoded uint64.
func EncodeZigZag ¶
EncodeZigZag encodes an int64 as a zig-zag-encoded uint64.
Input: {…, -3, -2, -1, 0, +1, +2, +3, …} Output: {…, 5, 3, 1, 0, 2, 4, 6, …}
Types ¶
Click to show internal directories.
Click to hide internal directories.