s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
21 lines • 927 B
TypeScript
/**
* Read the IEEE 754 double-precision floating-point number from a byte array
* @param buffer - u8 byte array to read from
* @param offset - offset into the byte array
* @param isLE - endianness
* @param mLen - mantissa length
* @param nBytes - number of bytes
* @returns - the parsed double size number
*/
export declare function read(buffer: Uint8Array, offset: number, isLE: boolean, mLen: number, nBytes: number): number;
/**
* Write the IEEE 754 double-precision floating-point number to a byte array
* @param buffer - u8 byte array to write to
* @param value - the parsed double size number
* @param offset - offset into the byte array
* @param isLE - endianness
* @param mLen - mantissa length
* @param nBytes - number of bytes
*/
export declare function write(buffer: Uint8Array, value: number, offset: number, isLE: boolean, mLen: number, nBytes: number): void;
//# sourceMappingURL=ieee754.d.ts.map