s2maps-gpu
Version:
S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.
19 lines (18 loc) • 553 B
TypeScript
/** 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;