rapidhash-wasm-vn 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -0
  3. package/bundler/rapidhash_wasm_vn.d.ts +161 -0
  4. package/bundler/rapidhash_wasm_vn.js +5 -0
  5. package/bundler/rapidhash_wasm_vn_bg.js +539 -0
  6. package/bundler/rapidhash_wasm_vn_bg.wasm +0 -0
  7. package/bundler/rapidhash_wasm_vn_bg.wasm.d.ts +56 -0
  8. package/deno/rapidhash_wasm_vn.d.ts +161 -0
  9. package/deno/rapidhash_wasm_vn.js +537 -0
  10. package/deno/rapidhash_wasm_vn_bg.wasm +0 -0
  11. package/deno/rapidhash_wasm_vn_bg.wasm.d.ts +56 -0
  12. package/esm/package.json +4 -0
  13. package/esm/rapidhash_wasm_vn.d.ts +161 -0
  14. package/esm/rapidhash_wasm_vn.js +17 -0
  15. package/esm/rapidhash_wasm_vn_bg.js +533 -0
  16. package/esm/rapidhash_wasm_vn_bg.wasm +0 -0
  17. package/esm/rapidhash_wasm_vn_bg.wasm.d.ts +56 -0
  18. package/module/rapidhash_wasm_vn.d.ts +161 -0
  19. package/module/rapidhash_wasm_vn.js +538 -0
  20. package/module/rapidhash_wasm_vn_bg.wasm +0 -0
  21. package/module/rapidhash_wasm_vn_bg.wasm.d.ts +56 -0
  22. package/no-modules/rapidhash_wasm_vn.d.ts +233 -0
  23. package/no-modules/rapidhash_wasm_vn.js +654 -0
  24. package/no-modules/rapidhash_wasm_vn_bg.wasm +0 -0
  25. package/no-modules/rapidhash_wasm_vn_bg.wasm.d.ts +56 -0
  26. package/nodejs/rapidhash_wasm_vn.d.ts +161 -0
  27. package/nodejs/rapidhash_wasm_vn.js +546 -0
  28. package/nodejs/rapidhash_wasm_vn_bg.wasm +0 -0
  29. package/nodejs/rapidhash_wasm_vn_bg.wasm.d.ts +56 -0
  30. package/package.json +79 -0
  31. package/web/rapidhash_wasm_vn.d.ts +241 -0
  32. package/web/rapidhash_wasm_vn.js +644 -0
  33. package/web/rapidhash_wasm_vn_bg.wasm +0 -0
  34. package/web/rapidhash_wasm_vn_bg.wasm.d.ts +56 -0
@@ -0,0 +1,533 @@
1
+ let wasm;
2
+ let wasmModule;
3
+ export function __wbg_set_wasm(exports, module) {
4
+ wasm = exports;
5
+ wasmModule = module;
6
+ }
7
+
8
+
9
+ let cachedUint8ArrayMemory0 = null;
10
+
11
+ function getUint8ArrayMemory0() {
12
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
13
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
14
+ }
15
+ return cachedUint8ArrayMemory0;
16
+ }
17
+
18
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
19
+
20
+ cachedTextDecoder.decode();
21
+
22
+ function decodeText(ptr, len) {
23
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
24
+ }
25
+
26
+ function getStringFromWasm0(ptr, len) {
27
+ ptr = ptr >>> 0;
28
+ return decodeText(ptr, len);
29
+ }
30
+
31
+ let WASM_VECTOR_LEN = 0;
32
+
33
+ function passArray8ToWasm0(arg, malloc) {
34
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
35
+ getUint8ArrayMemory0().set(arg, ptr / 1);
36
+ WASM_VECTOR_LEN = arg.length;
37
+ return ptr;
38
+ }
39
+
40
+ function isLikeNone(x) {
41
+ return x === undefined || x === null;
42
+ }
43
+ /**
44
+ * Computes RapidHash V1 (64-bit) hash
45
+ *
46
+ * # Arguments
47
+ *
48
+ * * `input` - Input data to hash
49
+ * * `seed` - Seed value for hash (default: 0)
50
+ * @param {Uint8Array} input
51
+ * @param {bigint | null} [seed]
52
+ * @returns {bigint}
53
+ */
54
+ export function hash_v1(input, seed) {
55
+ const ptr0 = passArray8ToWasm0(input, wasm.__wbindgen_malloc);
56
+ const len0 = WASM_VECTOR_LEN;
57
+ const ret = wasm.hash_v1(ptr0, len0, !isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
58
+ return BigInt.asUintN(64, ret);
59
+ }
60
+
61
+ /**
62
+ * Computes RapidHash V2 (64-bit) hash
63
+ *
64
+ * # Arguments
65
+ *
66
+ * * `input` - Input data to hash
67
+ * * `seed` - Seed value for hash (default: 0)
68
+ * @param {Uint8Array} input
69
+ * @param {bigint | null} [seed]
70
+ * @returns {bigint}
71
+ */
72
+ export function hash_v2(input, seed) {
73
+ const ptr0 = passArray8ToWasm0(input, wasm.__wbindgen_malloc);
74
+ const len0 = WASM_VECTOR_LEN;
75
+ const ret = wasm.hash_v2(ptr0, len0, !isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
76
+ return BigInt.asUintN(64, ret);
77
+ }
78
+
79
+ /**
80
+ * Computes RapidHash V3 (64-bit) hash
81
+ *
82
+ * # Arguments
83
+ *
84
+ * * `input` - Input data to hash
85
+ * * `seed` - Seed value for hash (default: 0)
86
+ * @param {Uint8Array} input
87
+ * @param {bigint | null} [seed]
88
+ * @returns {bigint}
89
+ */
90
+ export function hash_v3(input, seed) {
91
+ const ptr0 = passArray8ToWasm0(input, wasm.__wbindgen_malloc);
92
+ const len0 = WASM_VECTOR_LEN;
93
+ const ret = wasm.hash_v3(ptr0, len0, !isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
94
+ return BigInt.asUintN(64, ret);
95
+ }
96
+
97
+ /**
98
+ * Computes RapidHash V3 (64-bit) micro hash
99
+ *
100
+ * # Arguments
101
+ *
102
+ * * `input` - Input data to hash
103
+ * * `seed` - Seed value for hash (default: 0)
104
+ * @param {Uint8Array} input
105
+ * @param {bigint | null} [seed]
106
+ * @returns {bigint}
107
+ */
108
+ export function hash_v3_micro(input, seed) {
109
+ const ptr0 = passArray8ToWasm0(input, wasm.__wbindgen_malloc);
110
+ const len0 = WASM_VECTOR_LEN;
111
+ const ret = wasm.hash_v3_micro(ptr0, len0, !isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
112
+ return BigInt.asUintN(64, ret);
113
+ }
114
+
115
+ /**
116
+ * Computes RapidHash V3 (64-bit) nano hash
117
+ *
118
+ * # Arguments
119
+ *
120
+ * * `input` - Input data to hash
121
+ * * `seed` - Seed value for hash (default: 0)
122
+ * @param {Uint8Array} input
123
+ * @param {bigint | null} [seed]
124
+ * @returns {bigint}
125
+ */
126
+ export function hash_v3_nano(input, seed) {
127
+ const ptr0 = passArray8ToWasm0(input, wasm.__wbindgen_malloc);
128
+ const len0 = WASM_VECTOR_LEN;
129
+ const ret = wasm.hash_v3_nano(ptr0, len0, !isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
130
+ return BigInt.asUintN(64, ret);
131
+ }
132
+
133
+ const FastHasherFinalization = (typeof FinalizationRegistry === 'undefined')
134
+ ? { register: () => {}, unregister: () => {} }
135
+ : new FinalizationRegistry(ptr => wasm.__wbg_fasthasher_free(ptr >>> 0, 1));
136
+
137
+ export class FastHasher {
138
+
139
+ __destroy_into_raw() {
140
+ const ptr = this.__wbg_ptr;
141
+ this.__wbg_ptr = 0;
142
+ FastHasherFinalization.unregister(this);
143
+ return ptr;
144
+ }
145
+
146
+ free() {
147
+ const ptr = this.__destroy_into_raw();
148
+ wasm.__wbg_fasthasher_free(ptr, 0);
149
+ }
150
+ /**
151
+ * @param {bigint | null} [seed]
152
+ */
153
+ constructor(seed) {
154
+ const ret = wasm.fasthasher_new(!isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
155
+ this.__wbg_ptr = ret >>> 0;
156
+ FastHasherFinalization.register(this, this.__wbg_ptr, this);
157
+ return this;
158
+ }
159
+ /**
160
+ * Updates the hash with new data
161
+ * @param {Uint8Array} data
162
+ */
163
+ update(data) {
164
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
165
+ const len0 = WASM_VECTOR_LEN;
166
+ wasm.fasthasher_update(this.__wbg_ptr, ptr0, len0);
167
+ }
168
+ /**
169
+ * @param {number} data
170
+ */
171
+ update_u8(data) {
172
+ wasm.fasthasher_update_i8(this.__wbg_ptr, data);
173
+ }
174
+ /**
175
+ * @param {number} data
176
+ */
177
+ update_u16(data) {
178
+ wasm.fasthasher_update_i16(this.__wbg_ptr, data);
179
+ }
180
+ /**
181
+ * @param {number} data
182
+ */
183
+ update_u32(data) {
184
+ wasm.fasthasher_update_i32(this.__wbg_ptr, data);
185
+ }
186
+ /**
187
+ * @param {bigint} data
188
+ */
189
+ update_u64(data) {
190
+ wasm.fasthasher_update_i64(this.__wbg_ptr, data);
191
+ }
192
+ /**
193
+ * @param {bigint} data
194
+ */
195
+ update_u128(data) {
196
+ wasm.fasthasher_update_i128(this.__wbg_ptr, data, data >> BigInt(64));
197
+ }
198
+ /**
199
+ * @param {number} data
200
+ */
201
+ update_i8(data) {
202
+ wasm.fasthasher_update_i8(this.__wbg_ptr, data);
203
+ }
204
+ /**
205
+ * @param {number} data
206
+ */
207
+ update_i16(data) {
208
+ wasm.fasthasher_update_i16(this.__wbg_ptr, data);
209
+ }
210
+ /**
211
+ * @param {number} data
212
+ */
213
+ update_i32(data) {
214
+ wasm.fasthasher_update_i32(this.__wbg_ptr, data);
215
+ }
216
+ /**
217
+ * @param {bigint} data
218
+ */
219
+ update_i64(data) {
220
+ wasm.fasthasher_update_i64(this.__wbg_ptr, data);
221
+ }
222
+ /**
223
+ * @param {bigint} data
224
+ */
225
+ update_i128(data) {
226
+ wasm.fasthasher_update_i128(this.__wbg_ptr, data, data >> BigInt(64));
227
+ }
228
+ /**
229
+ * Finalizes the hash and returns the result
230
+ * @returns {bigint}
231
+ */
232
+ digest() {
233
+ const ret = wasm.fasthasher_digest(this.__wbg_ptr);
234
+ return BigInt.asUintN(64, ret);
235
+ }
236
+ /**
237
+ * Resets the hasher
238
+ */
239
+ reset() {
240
+ wasm.fasthasher_reset(this.__wbg_ptr);
241
+ }
242
+ }
243
+ if (Symbol.dispose) FastHasher.prototype[Symbol.dispose] = FastHasher.prototype.free;
244
+
245
+ const PortableHashV1Finalization = (typeof FinalizationRegistry === 'undefined')
246
+ ? { register: () => {}, unregister: () => {} }
247
+ : new FinalizationRegistry(ptr => wasm.__wbg_portablehashv1_free(ptr >>> 0, 1));
248
+ /**
249
+ * Streaming PortableHashV1
250
+ */
251
+ export class PortableHashV1 {
252
+
253
+ __destroy_into_raw() {
254
+ const ptr = this.__wbg_ptr;
255
+ this.__wbg_ptr = 0;
256
+ PortableHashV1Finalization.unregister(this);
257
+ return ptr;
258
+ }
259
+
260
+ free() {
261
+ const ptr = this.__destroy_into_raw();
262
+ wasm.__wbg_portablehashv1_free(ptr, 0);
263
+ }
264
+ /**
265
+ * @param {bigint | null} [seed]
266
+ */
267
+ constructor(seed) {
268
+ const ret = wasm.portablehashv1_new(!isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
269
+ this.__wbg_ptr = ret >>> 0;
270
+ PortableHashV1Finalization.register(this, this.__wbg_ptr, this);
271
+ return this;
272
+ }
273
+ /**
274
+ * Updates the hash with new data
275
+ * @param {Uint8Array} data
276
+ */
277
+ update(data) {
278
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
279
+ const len0 = WASM_VECTOR_LEN;
280
+ wasm.portablehashv1_update(this.__wbg_ptr, ptr0, len0);
281
+ }
282
+ /**
283
+ * Finalizes the hash and returns the result
284
+ * @returns {bigint}
285
+ */
286
+ digest() {
287
+ const ret = wasm.portablehashv1_digest(this.__wbg_ptr);
288
+ return BigInt.asUintN(64, ret);
289
+ }
290
+ /**
291
+ * Resets the hasher with optional new seed
292
+ */
293
+ reset() {
294
+ wasm.portablehashv1_reset(this.__wbg_ptr);
295
+ }
296
+ }
297
+ if (Symbol.dispose) PortableHashV1.prototype[Symbol.dispose] = PortableHashV1.prototype.free;
298
+
299
+ const PortableHashV2Finalization = (typeof FinalizationRegistry === 'undefined')
300
+ ? { register: () => {}, unregister: () => {} }
301
+ : new FinalizationRegistry(ptr => wasm.__wbg_portablehashv2_free(ptr >>> 0, 1));
302
+ /**
303
+ * Streaming PortableHashV2
304
+ */
305
+ export class PortableHashV2 {
306
+
307
+ __destroy_into_raw() {
308
+ const ptr = this.__wbg_ptr;
309
+ this.__wbg_ptr = 0;
310
+ PortableHashV2Finalization.unregister(this);
311
+ return ptr;
312
+ }
313
+
314
+ free() {
315
+ const ptr = this.__destroy_into_raw();
316
+ wasm.__wbg_portablehashv2_free(ptr, 0);
317
+ }
318
+ /**
319
+ * @param {bigint | null} [seed]
320
+ */
321
+ constructor(seed) {
322
+ const ret = wasm.portablehashv2_new(!isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
323
+ this.__wbg_ptr = ret >>> 0;
324
+ PortableHashV2Finalization.register(this, this.__wbg_ptr, this);
325
+ return this;
326
+ }
327
+ /**
328
+ * Updates the hash with new data
329
+ * @param {Uint8Array} data
330
+ */
331
+ update(data) {
332
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
333
+ const len0 = WASM_VECTOR_LEN;
334
+ wasm.portablehashv2_update(this.__wbg_ptr, ptr0, len0);
335
+ }
336
+ /**
337
+ * Finalizes the hash and returns the result
338
+ * @returns {bigint}
339
+ */
340
+ digest() {
341
+ const ret = wasm.portablehashv2_digest(this.__wbg_ptr);
342
+ return BigInt.asUintN(64, ret);
343
+ }
344
+ /**
345
+ * Resets the hasher with optional new seed
346
+ */
347
+ reset() {
348
+ wasm.portablehashv2_reset(this.__wbg_ptr);
349
+ }
350
+ }
351
+ if (Symbol.dispose) PortableHashV2.prototype[Symbol.dispose] = PortableHashV2.prototype.free;
352
+
353
+ const PortableHashV3Finalization = (typeof FinalizationRegistry === 'undefined')
354
+ ? { register: () => {}, unregister: () => {} }
355
+ : new FinalizationRegistry(ptr => wasm.__wbg_portablehashv3_free(ptr >>> 0, 1));
356
+ /**
357
+ * Streaming PortableHashV3
358
+ */
359
+ export class PortableHashV3 {
360
+
361
+ __destroy_into_raw() {
362
+ const ptr = this.__wbg_ptr;
363
+ this.__wbg_ptr = 0;
364
+ PortableHashV3Finalization.unregister(this);
365
+ return ptr;
366
+ }
367
+
368
+ free() {
369
+ const ptr = this.__destroy_into_raw();
370
+ wasm.__wbg_portablehashv3_free(ptr, 0);
371
+ }
372
+ /**
373
+ * @param {bigint | null} [seed]
374
+ */
375
+ constructor(seed) {
376
+ const ret = wasm.portablehashv2_new(!isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
377
+ this.__wbg_ptr = ret >>> 0;
378
+ PortableHashV3Finalization.register(this, this.__wbg_ptr, this);
379
+ return this;
380
+ }
381
+ /**
382
+ * Updates the hash with new data
383
+ * @param {Uint8Array} data
384
+ */
385
+ update(data) {
386
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
387
+ const len0 = WASM_VECTOR_LEN;
388
+ wasm.portablehashv2_update(this.__wbg_ptr, ptr0, len0);
389
+ }
390
+ /**
391
+ * Finalizes the hash and returns the result
392
+ * @returns {bigint}
393
+ */
394
+ digest() {
395
+ const ret = wasm.portablehashv3_digest(this.__wbg_ptr);
396
+ return BigInt.asUintN(64, ret);
397
+ }
398
+ /**
399
+ * Resets the hasher with optional new seed
400
+ */
401
+ reset() {
402
+ wasm.portablehashv2_reset(this.__wbg_ptr);
403
+ }
404
+ }
405
+ if (Symbol.dispose) PortableHashV3.prototype[Symbol.dispose] = PortableHashV3.prototype.free;
406
+
407
+ const QualityHasherFinalization = (typeof FinalizationRegistry === 'undefined')
408
+ ? { register: () => {}, unregister: () => {} }
409
+ : new FinalizationRegistry(ptr => wasm.__wbg_qualityhasher_free(ptr >>> 0, 1));
410
+
411
+ export class QualityHasher {
412
+
413
+ __destroy_into_raw() {
414
+ const ptr = this.__wbg_ptr;
415
+ this.__wbg_ptr = 0;
416
+ QualityHasherFinalization.unregister(this);
417
+ return ptr;
418
+ }
419
+
420
+ free() {
421
+ const ptr = this.__destroy_into_raw();
422
+ wasm.__wbg_qualityhasher_free(ptr, 0);
423
+ }
424
+ /**
425
+ * @param {bigint | null} [seed]
426
+ */
427
+ constructor(seed) {
428
+ const ret = wasm.fasthasher_new(!isLikeNone(seed), isLikeNone(seed) ? BigInt(0) : seed);
429
+ this.__wbg_ptr = ret >>> 0;
430
+ QualityHasherFinalization.register(this, this.__wbg_ptr, this);
431
+ return this;
432
+ }
433
+ /**
434
+ * Updates the hash with new data
435
+ * @param {Uint8Array} data
436
+ */
437
+ update(data) {
438
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
439
+ const len0 = WASM_VECTOR_LEN;
440
+ wasm.qualityhasher_update(this.__wbg_ptr, ptr0, len0);
441
+ }
442
+ /**
443
+ * @param {number} data
444
+ */
445
+ update_u8(data) {
446
+ wasm.fasthasher_update_i8(this.__wbg_ptr, data);
447
+ }
448
+ /**
449
+ * @param {number} data
450
+ */
451
+ update_u16(data) {
452
+ wasm.fasthasher_update_i16(this.__wbg_ptr, data);
453
+ }
454
+ /**
455
+ * @param {number} data
456
+ */
457
+ update_u32(data) {
458
+ wasm.fasthasher_update_i32(this.__wbg_ptr, data);
459
+ }
460
+ /**
461
+ * @param {bigint} data
462
+ */
463
+ update_u64(data) {
464
+ wasm.fasthasher_update_i64(this.__wbg_ptr, data);
465
+ }
466
+ /**
467
+ * @param {bigint} data
468
+ */
469
+ update_u128(data) {
470
+ wasm.fasthasher_update_i128(this.__wbg_ptr, data, data >> BigInt(64));
471
+ }
472
+ /**
473
+ * @param {number} data
474
+ */
475
+ update_i8(data) {
476
+ wasm.fasthasher_update_i8(this.__wbg_ptr, data);
477
+ }
478
+ /**
479
+ * @param {number} data
480
+ */
481
+ update_i16(data) {
482
+ wasm.fasthasher_update_i16(this.__wbg_ptr, data);
483
+ }
484
+ /**
485
+ * @param {number} data
486
+ */
487
+ update_i32(data) {
488
+ wasm.fasthasher_update_i32(this.__wbg_ptr, data);
489
+ }
490
+ /**
491
+ * @param {bigint} data
492
+ */
493
+ update_i64(data) {
494
+ wasm.fasthasher_update_i64(this.__wbg_ptr, data);
495
+ }
496
+ /**
497
+ * @param {bigint} data
498
+ */
499
+ update_i128(data) {
500
+ wasm.fasthasher_update_i128(this.__wbg_ptr, data, data >> BigInt(64));
501
+ }
502
+ /**
503
+ * Finalizes the hash and returns the result
504
+ * @returns {bigint}
505
+ */
506
+ digest() {
507
+ const ret = wasm.qualityhasher_digest(this.__wbg_ptr);
508
+ return BigInt.asUintN(64, ret);
509
+ }
510
+ /**
511
+ * Resets the hasher
512
+ */
513
+ reset() {
514
+ wasm.fasthasher_reset(this.__wbg_ptr);
515
+ }
516
+ }
517
+ if (Symbol.dispose) QualityHasher.prototype[Symbol.dispose] = QualityHasher.prototype.free;
518
+
519
+ export function __wbg_wbindgenthrow_451ec1a8469d7eb6(arg0, arg1) {
520
+ throw new Error(getStringFromWasm0(arg0, arg1));
521
+ };
522
+
523
+ export function __wbindgen_init_externref_table() {
524
+ const table = wasm.__wbindgen_export_0;
525
+ const offset = table.grow(4);
526
+ table.set(0, undefined);
527
+ table.set(offset + 0, undefined);
528
+ table.set(offset + 1, null);
529
+ table.set(offset + 2, true);
530
+ table.set(offset + 3, false);
531
+ ;
532
+ };
533
+
Binary file
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const hash_v1: (a: number, b: number, c: number, d: bigint) => bigint;
5
+ export const __wbg_portablehashv1_free: (a: number, b: number) => void;
6
+ export const portablehashv1_new: (a: number, b: bigint) => number;
7
+ export const portablehashv1_update: (a: number, b: number, c: number) => void;
8
+ export const portablehashv1_digest: (a: number) => bigint;
9
+ export const portablehashv1_reset: (a: number) => void;
10
+ export const hash_v2: (a: number, b: number, c: number, d: bigint) => bigint;
11
+ export const __wbg_portablehashv2_free: (a: number, b: number) => void;
12
+ export const portablehashv2_new: (a: number, b: bigint) => number;
13
+ export const portablehashv2_update: (a: number, b: number, c: number) => void;
14
+ export const portablehashv2_digest: (a: number) => bigint;
15
+ export const portablehashv2_reset: (a: number) => void;
16
+ export const hash_v3: (a: number, b: number, c: number, d: bigint) => bigint;
17
+ export const hash_v3_micro: (a: number, b: number, c: number, d: bigint) => bigint;
18
+ export const hash_v3_nano: (a: number, b: number, c: number, d: bigint) => bigint;
19
+ export const portablehashv3_digest: (a: number) => bigint;
20
+ export const __wbg_fasthasher_free: (a: number, b: number) => void;
21
+ export const fasthasher_new: (a: number, b: bigint) => number;
22
+ export const fasthasher_update: (a: number, b: number, c: number) => void;
23
+ export const fasthasher_update_i8: (a: number, b: number) => void;
24
+ export const fasthasher_update_i16: (a: number, b: number) => void;
25
+ export const fasthasher_update_i32: (a: number, b: number) => void;
26
+ export const fasthasher_update_i64: (a: number, b: bigint) => void;
27
+ export const fasthasher_update_i128: (a: number, b: bigint, c: bigint) => void;
28
+ export const fasthasher_digest: (a: number) => bigint;
29
+ export const fasthasher_reset: (a: number) => void;
30
+ export const qualityhasher_update: (a: number, b: number, c: number) => void;
31
+ export const qualityhasher_digest: (a: number) => bigint;
32
+ export const fasthasher_update_u8: (a: number, b: number) => void;
33
+ export const fasthasher_update_u16: (a: number, b: number) => void;
34
+ export const qualityhasher_update_u8: (a: number, b: number) => void;
35
+ export const qualityhasher_update_u16: (a: number, b: number) => void;
36
+ export const fasthasher_update_u128: (a: number, b: bigint, c: bigint) => void;
37
+ export const qualityhasher_update_u128: (a: number, b: bigint, c: bigint) => void;
38
+ export const fasthasher_update_u32: (a: number, b: number) => void;
39
+ export const fasthasher_update_u64: (a: number, b: bigint) => void;
40
+ export const qualityhasher_update_u32: (a: number, b: number) => void;
41
+ export const qualityhasher_update_u64: (a: number, b: bigint) => void;
42
+ export const qualityhasher_new: (a: number, b: bigint) => number;
43
+ export const __wbg_qualityhasher_free: (a: number, b: number) => void;
44
+ export const __wbg_portablehashv3_free: (a: number, b: number) => void;
45
+ export const portablehashv3_reset: (a: number) => void;
46
+ export const qualityhasher_reset: (a: number) => void;
47
+ export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
48
+ export const qualityhasher_update_i64: (a: number, b: bigint) => void;
49
+ export const qualityhasher_update_i32: (a: number, b: number) => void;
50
+ export const qualityhasher_update_i16: (a: number, b: number) => void;
51
+ export const qualityhasher_update_i8: (a: number, b: number) => void;
52
+ export const portablehashv3_update: (a: number, b: number, c: number) => void;
53
+ export const portablehashv3_new: (a: number, b: bigint) => number;
54
+ export const __wbindgen_export_0: WebAssembly.Table;
55
+ export const __wbindgen_malloc: (a: number, b: number) => number;
56
+ export const __wbindgen_start: () => void;