API Reference / @evolu/common / Evolu/Protocol / decodeLength
Variable: decodeLength()
const decodeLength: (buffer) => number & Brand<"Int"> & Brand<"NonNegative"> = decodeNonNegativeInt;
Defined in: packages/common/src/Evolu/Protocol.ts:1644
Decodes a non-negative integer from a variable-length integer format.
https://en.wikipedia.org/wiki/Variable-length_quantity
Parameters
Parameter | Type |
---|---|
buffer | Buffer |