Function encodeZigZag32

Encode a signed 32-bit value using the protobuf ZigZag transform.

uint encodeZigZag32(
  int value
) pure nothrow @nogc @safe;

Parameters

NameDescription
value Signed value to encode.

Returns

The ZigZag-encoded unsigned 32-bit value.