API reference › @evolu/common › local‑first/Protocol › decodeNonNegativeInt
function decodeNonNegativeInt(
buffer: Buffer,
): number &
Brand<"NonNaN"> &
Brand<"Finite"> &
Brand<"Int"> &
Brand<"NonNegative">;
Defined in: packages/common/src/local-first/Protocol.ts:2010
Decodes a non-negative integer from a variable-length integer format.