pbd.decode

Protobuf ZigZag decoding.

Members

Functions

fromVarint
T fromVarint(scope ref 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.

Meta