UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

19 lines 589 B
/** A buffer with the position to read from */ export interface VarintBufPos { buf: Uint8Array; pos: number; } /** * Read a varint * @param bufPos - the buffer with it's position * @returns - the decoded number */ export declare function readVarint(bufPos: VarintBufPos): number; /** * Read the remainder of a varint * @param low - the low 32 bits of the number * @param bufPos - the buffer with it's position * @returns - the decoded remainder */ export declare function readVarintRemainder(low: number, bufPos: VarintBufPos): number; //# sourceMappingURL=varint.d.ts.map