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