zigzag_decode
Reverses zigzag_encode: 0, 1, 2, 3, 4, ... become
0, -1, 1, -2, 2, ....
Import
Section titled “Import”Cargo feature bytes (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | u64 | The zigzag-encoded value. |
Returns
Section titled “Returns”i64 — The signed integer. A value read from a 32-bit varint always fits in an i32.
