pbd.decode

Protobuf ZigZag decoding.

Members

Functions

decode
T decode(ubyte[] encoded)
Undocumented in source. Be warned that the author may not have intended to support it.
fromVarint
T fromVarint(ubyte[] encoded)

Decodes varint and consumes given bytes.

fromZigzag
T fromZigzag(T n)

Reverts a given zigzag-encoded ((n << 1) ^ (n >> (T.sizeof * 8 - 1))) unsigned value to signed.

Structs

VarintElem
struct VarintElem
Undocumented in source.

Meta