s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
28 lines • 1.15 kB
TypeScript
import type { VarintBufPos } from '../../readers/pmtiles';
/**
* Write a varint. Can be max 64-bits. Numbers are coerced to an unsigned
* while number before using this function.
* @param val - any whole unsigned number.
* @param bufPos - the buffer with it's position to write at
*/
export declare function writeVarint(val: number, bufPos: VarintBufPos): void;
/**
* Write a varint larger then 54-bits.
* @param val - the number
* @param bufPos - the buffer with it's position to write at
*/
export declare function writeBigVarint(val: number, bufPos: VarintBufPos): void;
/**
* Write a varint larger then 54-bits on the low end
* @param low - lower 32 bits
* @param _high - unused "high" bits
* @param bufPos - the buffer with it's position to write at
*/
export declare function writeBigVarintLow(low: number, _high: number, bufPos: VarintBufPos): void;
/**
* Write a varint larger then 54-bits on the high end
* @param high - the high 32 bits
* @param bufPos - the buffer with it's position to write at
*/
export declare function writeBigVarintHigh(high: number, bufPos: VarintBufPos): void;
//# sourceMappingURL=varint.d.ts.map