Spaces:
Sleeping
Sleeping
File size: 863 Bytes
0865492 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /**
* GEAR hash WASM - Runtime bytecode generation
*
* Generates a tiny WebAssembly module with a single `nextMatch` function
* that performs the gear hash rolling scan using native i64 arithmetic.
*
* Memory layout (all little-endian):
* 0-2047: Gear lookup table (256 × 8 bytes)
* 2048-2055: Hash state (u64, persists across calls)
* 2056-2063: Mask (u64, set per-hasher before each call)
* 4096+: Input buffer
*/
export declare const TABLE_OFFSET = 0;
export declare const HASH_OFFSET = 2048;
export declare const MASK_OFFSET = 2056;
export declare const INPUT_OFFSET = 4096;
export declare const MAX_INPUT_SIZE: number;
export declare function initWasm(): void;
export declare function wasmNextMatch(inputStart: number, inputLen: number): number;
export declare function getView(): Uint8Array;
//# sourceMappingURL=wasm.d.ts.map |