rapidhash-wasm-vn 1.2.0 → 1.2.1

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.
Binary file
@@ -1,44 +1,44 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const hash_v1: (a: number, b: number, c: number, d: bigint) => bigint;
4
+ export const __wbg_fasthasher_free: (a: number, b: number) => void;
5
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;
6
+ export const __wbg_portablehashv2_free: (a: number, b: number) => void;
7
+ export const fasthasher_digest: (a: number) => bigint;
8
+ export const fasthasher_new: (a: number, b: bigint) => number;
9
+ export const fasthasher_reset: (a: number) => void;
10
+ export const fasthasher_update: (a: number, b: number, c: number) => void;
11
+ export const fasthasher_update_i128: (a: number, b: bigint, c: bigint) => void;
12
+ export const fasthasher_update_i16: (a: number, b: number) => void;
13
+ export const fasthasher_update_i32: (a: number, b: number) => void;
14
+ export const fasthasher_update_i64: (a: number, b: bigint) => void;
15
+ export const fasthasher_update_i8: (a: number, b: number) => void;
16
+ export const hash_file_v3: (a: number, b: number, c: number, d: bigint) => [bigint, number, number];
17
+ export const hash_v1: (a: number, b: number, c: number, d: bigint) => bigint;
10
18
  export const hash_v1_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
11
19
  export const hash_v2: (a: number, b: number, c: number, d: bigint) => bigint;
12
- export const __wbg_portablehashv2_free: (a: number, b: number) => void;
13
- export const portablehashv2_new: (a: number, b: bigint) => number;
14
- export const portablehashv2_update: (a: number, b: number, c: number) => void;
15
- export const portablehashv2_digest: (a: number) => bigint;
16
- export const portablehashv2_reset: (a: number) => void;
17
20
  export const hash_v2_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
18
21
  export const hash_v3: (a: number, b: number, c: number, d: bigint) => bigint;
22
+ export const hash_v3_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
19
23
  export const hash_v3_micro: (a: number, b: number, c: number, d: bigint) => bigint;
20
24
  export const hash_v3_nano: (a: number, b: number, c: number, d: bigint) => bigint;
21
- export const hash_file_v3: (a: number, b: number, c: number, d: bigint) => [bigint, number, number];
25
+ export const portablehashv1_digest: (a: number) => bigint;
26
+ export const portablehashv1_new: (a: number, b: bigint) => number;
27
+ export const portablehashv1_reset: (a: number) => void;
28
+ export const portablehashv1_update: (a: number, b: number, c: number) => void;
29
+ export const portablehashv2_digest: (a: number) => bigint;
30
+ export const portablehashv2_new: (a: number, b: bigint) => number;
31
+ export const portablehashv2_reset: (a: number) => void;
32
+ export const portablehashv2_update: (a: number, b: number, c: number) => void;
22
33
  export const portablehashv3_digest: (a: number) => bigint;
23
- export const hash_v3_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
24
- export const __wbg_fasthasher_free: (a: number, b: number) => void;
25
- export const fasthasher_new: (a: number, b: bigint) => number;
26
- export const fasthasher_update: (a: number, b: number, c: number) => void;
27
- export const fasthasher_update_i8: (a: number, b: number) => void;
28
- export const fasthasher_update_i16: (a: number, b: number) => void;
29
- export const fasthasher_update_i32: (a: number, b: number) => void;
30
- export const fasthasher_update_i64: (a: number, b: bigint) => void;
31
- export const fasthasher_update_i128: (a: number, b: bigint, c: bigint) => void;
32
- export const fasthasher_digest: (a: number) => bigint;
33
- export const fasthasher_reset: (a: number) => void;
34
- export const qualityhasher_update: (a: number, b: number, c: number) => void;
35
34
  export const qualityhasher_digest: (a: number) => bigint;
35
+ export const qualityhasher_update: (a: number, b: number, c: number) => void;
36
36
  export const fasthasher_update_u128: (a: number, b: bigint, c: bigint) => void;
37
37
  export const qualityhasher_update_u128: (a: number, b: bigint, c: bigint) => void;
38
- export const fasthasher_update_u8: (a: number, b: number) => void;
39
38
  export const fasthasher_update_u16: (a: number, b: number) => void;
40
- export const qualityhasher_update_u8: (a: number, b: number) => void;
39
+ export const fasthasher_update_u8: (a: number, b: number) => void;
41
40
  export const qualityhasher_update_u16: (a: number, b: number) => void;
41
+ export const qualityhasher_update_u8: (a: number, b: number) => void;
42
42
  export const qualityhasher_new: (a: number, b: bigint) => number;
43
43
  export const fasthasher_update_u32: (a: number, b: number) => void;
44
44
  export const fasthasher_update_u64: (a: number, b: bigint) => void;
@@ -46,18 +46,18 @@ export const qualityhasher_update_u32: (a: number, b: number) => void;
46
46
  export const qualityhasher_update_u64: (a: number, b: bigint) => void;
47
47
  export const __wbg_qualityhasher_free: (a: number, b: number) => void;
48
48
  export const __wbg_portablehashv3_free: (a: number, b: number) => void;
49
+ export const portablehashv3_update: (a: number, b: number, c: number) => void;
49
50
  export const portablehashv3_reset: (a: number) => void;
50
- export const qualityhasher_reset: (a: number) => void;
51
- export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
51
+ export const qualityhasher_update_i8: (a: number, b: number) => void;
52
52
  export const qualityhasher_update_i64: (a: number, b: bigint) => void;
53
53
  export const qualityhasher_update_i32: (a: number, b: number) => void;
54
54
  export const qualityhasher_update_i16: (a: number, b: number) => void;
55
- export const qualityhasher_update_i8: (a: number, b: number) => void;
56
- export const portablehashv3_update: (a: number, b: number, c: number) => void;
55
+ export const qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
56
+ export const qualityhasher_reset: (a: number) => void;
57
57
  export const portablehashv3_new: (a: number, b: bigint) => number;
58
- export const __wbindgen_export_0: WebAssembly.Table;
58
+ export const __wbindgen_externrefs: WebAssembly.Table;
59
59
  export const __wbindgen_malloc: (a: number, b: number) => number;
60
- export const __externref_table_alloc: () => number;
61
60
  export const __externref_table_dealloc: (a: number) => void;
61
+ export const __externref_table_alloc: () => number;
62
62
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
63
63
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "ndtao2020"
6
6
  ],
7
7
  "description": "RapidHash for WebAssembly",
8
- "version": "1.2.0",
8
+ "version": "1.2.1",
9
9
  "license": "MIT License",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,5 +1,135 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+
4
+ export class FastHasher {
5
+ free(): void;
6
+ [Symbol.dispose](): void;
7
+ /**
8
+ * Finalizes the hash and returns the result
9
+ */
10
+ digest(): bigint;
11
+ constructor(seed?: bigint | null);
12
+ /**
13
+ * Resets the hasher
14
+ */
15
+ reset(): void;
16
+ /**
17
+ * Updates the hash with new data
18
+ */
19
+ update(data: Uint8Array): void;
20
+ update_i128(data: bigint): void;
21
+ update_i16(data: number): void;
22
+ update_i32(data: number): void;
23
+ update_i64(data: bigint): void;
24
+ update_i8(data: number): void;
25
+ update_u128(data: bigint): void;
26
+ update_u16(data: number): void;
27
+ update_u32(data: number): void;
28
+ update_u64(data: bigint): void;
29
+ update_u8(data: number): void;
30
+ }
31
+
32
+ /**
33
+ * Streaming PortableHashV1
34
+ */
35
+ export class PortableHashV1 {
36
+ free(): void;
37
+ [Symbol.dispose](): void;
38
+ /**
39
+ * Finalizes the hash and returns the result
40
+ */
41
+ digest(): bigint;
42
+ constructor(seed?: bigint | null);
43
+ /**
44
+ * Resets the hasher with optional new seed
45
+ */
46
+ reset(): void;
47
+ /**
48
+ * Updates the hash with new data
49
+ */
50
+ update(data: Uint8Array): void;
51
+ }
52
+
53
+ /**
54
+ * Streaming PortableHashV2
55
+ */
56
+ export class PortableHashV2 {
57
+ free(): void;
58
+ [Symbol.dispose](): void;
59
+ /**
60
+ * Finalizes the hash and returns the result
61
+ */
62
+ digest(): bigint;
63
+ constructor(seed?: bigint | null);
64
+ /**
65
+ * Resets the hasher with optional new seed
66
+ */
67
+ reset(): void;
68
+ /**
69
+ * Updates the hash with new data
70
+ */
71
+ update(data: Uint8Array): void;
72
+ }
73
+
74
+ /**
75
+ * Streaming PortableHashV3
76
+ */
77
+ export class PortableHashV3 {
78
+ free(): void;
79
+ [Symbol.dispose](): void;
80
+ /**
81
+ * Finalizes the hash and returns the result
82
+ */
83
+ digest(): bigint;
84
+ constructor(seed?: bigint | null);
85
+ /**
86
+ * Resets the hasher with optional new seed
87
+ */
88
+ reset(): void;
89
+ /**
90
+ * Updates the hash with new data
91
+ */
92
+ update(data: Uint8Array): void;
93
+ }
94
+
95
+ export class QualityHasher {
96
+ free(): void;
97
+ [Symbol.dispose](): void;
98
+ /**
99
+ * Finalizes the hash and returns the result
100
+ */
101
+ digest(): bigint;
102
+ constructor(seed?: bigint | null);
103
+ /**
104
+ * Resets the hasher
105
+ */
106
+ reset(): void;
107
+ /**
108
+ * Updates the hash with new data
109
+ */
110
+ update(data: Uint8Array): void;
111
+ update_i128(data: bigint): void;
112
+ update_i16(data: number): void;
113
+ update_i32(data: number): void;
114
+ update_i64(data: bigint): void;
115
+ update_i8(data: number): void;
116
+ update_u128(data: bigint): void;
117
+ update_u16(data: number): void;
118
+ update_u32(data: number): void;
119
+ update_u64(data: bigint): void;
120
+ update_u8(data: number): void;
121
+ }
122
+
123
+ /**
124
+ * RapidHash V3 - (64-bit) hash file
125
+ *
126
+ * # Arguments
127
+ *
128
+ * * `input` - Input data to hash
129
+ * * `seed` - Seed value for hash (default: 0)
130
+ */
131
+ export function hash_file_v3(input: Uint8Array, seed?: bigint | null): bigint;
132
+
3
133
  /**
4
134
  * Computes RapidHash V1 (64-bit) hash
5
135
  *
@@ -9,10 +139,12 @@
9
139
  * * `seed` - Seed value for hash (default: 0)
10
140
  */
11
141
  export function hash_v1(input: Uint8Array, seed?: bigint | null): bigint;
142
+
12
143
  /**
13
144
  * Computes multiple RapidHash V1 (64-bit) hashes in batch
14
145
  */
15
146
  export function hash_v1_batch(chunks: Uint8Array[], seed?: bigint | null): BigUint64Array;
147
+
16
148
  /**
17
149
  * Computes RapidHash V2 (64-bit) hash
18
150
  *
@@ -22,10 +154,12 @@ export function hash_v1_batch(chunks: Uint8Array[], seed?: bigint | null): BigUi
22
154
  * * `seed` - Seed value for hash (default: 0)
23
155
  */
24
156
  export function hash_v2(input: Uint8Array, seed?: bigint | null): bigint;
157
+
25
158
  /**
26
159
  * Computes multiple RapidHash V2 (64-bit) hashes in batch
27
160
  */
28
161
  export function hash_v2_batch(chunks: Uint8Array[], seed?: bigint | null): BigUint64Array;
162
+
29
163
  /**
30
164
  * Computes RapidHash V3 (64-bit) hash
31
165
  *
@@ -35,6 +169,12 @@ export function hash_v2_batch(chunks: Uint8Array[], seed?: bigint | null): BigUi
35
169
  * * `seed` - Seed value for hash (default: 0)
36
170
  */
37
171
  export function hash_v3(input: Uint8Array, seed?: bigint | null): bigint;
172
+
173
+ /**
174
+ * Computes multiple RapidHash V3 (64-bit) hashes in batch
175
+ */
176
+ export function hash_v3_batch(chunks: Uint8Array[], seed?: bigint | null): BigUint64Array;
177
+
38
178
  /**
39
179
  * Computes RapidHash V3 (64-bit) micro hash
40
180
  *
@@ -44,6 +184,7 @@ export function hash_v3(input: Uint8Array, seed?: bigint | null): bigint;
44
184
  * * `seed` - Seed value for hash (default: 0)
45
185
  */
46
186
  export function hash_v3_micro(input: Uint8Array, seed?: bigint | null): bigint;
187
+
47
188
  /**
48
189
  * Computes RapidHash V3 (64-bit) nano hash
49
190
  *
@@ -53,217 +194,91 @@ export function hash_v3_micro(input: Uint8Array, seed?: bigint | null): bigint;
53
194
  * * `seed` - Seed value for hash (default: 0)
54
195
  */
55
196
  export function hash_v3_nano(input: Uint8Array, seed?: bigint | null): bigint;
56
- /**
57
- * RapidHash V3 - (64-bit) hash file
58
- *
59
- * # Arguments
60
- *
61
- * * `input` - Input data to hash
62
- * * `seed` - Seed value for hash (default: 0)
63
- */
64
- export function hash_file_v3(input: Uint8Array, seed?: bigint | null): bigint;
65
- /**
66
- * Computes multiple RapidHash V3 (64-bit) hashes in batch
67
- */
68
- export function hash_v3_batch(chunks: Uint8Array[], seed?: bigint | null): BigUint64Array;
69
- export class FastHasher {
70
- free(): void;
71
- [Symbol.dispose](): void;
72
- constructor(seed?: bigint | null);
73
- /**
74
- * Updates the hash with new data
75
- */
76
- update(data: Uint8Array): void;
77
- update_u8(data: number): void;
78
- update_u16(data: number): void;
79
- update_u32(data: number): void;
80
- update_u64(data: bigint): void;
81
- update_u128(data: bigint): void;
82
- update_i8(data: number): void;
83
- update_i16(data: number): void;
84
- update_i32(data: number): void;
85
- update_i64(data: bigint): void;
86
- update_i128(data: bigint): void;
87
- /**
88
- * Finalizes the hash and returns the result
89
- */
90
- digest(): bigint;
91
- /**
92
- * Resets the hasher
93
- */
94
- reset(): void;
95
- }
96
- /**
97
- * Streaming PortableHashV1
98
- */
99
- export class PortableHashV1 {
100
- free(): void;
101
- [Symbol.dispose](): void;
102
- constructor(seed?: bigint | null);
103
- /**
104
- * Updates the hash with new data
105
- */
106
- update(data: Uint8Array): void;
107
- /**
108
- * Finalizes the hash and returns the result
109
- */
110
- digest(): bigint;
111
- /**
112
- * Resets the hasher with optional new seed
113
- */
114
- reset(): void;
115
- }
116
- /**
117
- * Streaming PortableHashV2
118
- */
119
- export class PortableHashV2 {
120
- free(): void;
121
- [Symbol.dispose](): void;
122
- constructor(seed?: bigint | null);
123
- /**
124
- * Updates the hash with new data
125
- */
126
- update(data: Uint8Array): void;
127
- /**
128
- * Finalizes the hash and returns the result
129
- */
130
- digest(): bigint;
131
- /**
132
- * Resets the hasher with optional new seed
133
- */
134
- reset(): void;
135
- }
136
- /**
137
- * Streaming PortableHashV3
138
- */
139
- export class PortableHashV3 {
140
- free(): void;
141
- [Symbol.dispose](): void;
142
- constructor(seed?: bigint | null);
143
- /**
144
- * Updates the hash with new data
145
- */
146
- update(data: Uint8Array): void;
147
- /**
148
- * Finalizes the hash and returns the result
149
- */
150
- digest(): bigint;
151
- /**
152
- * Resets the hasher with optional new seed
153
- */
154
- reset(): void;
155
- }
156
- export class QualityHasher {
157
- free(): void;
158
- [Symbol.dispose](): void;
159
- constructor(seed?: bigint | null);
160
- /**
161
- * Updates the hash with new data
162
- */
163
- update(data: Uint8Array): void;
164
- update_u8(data: number): void;
165
- update_u16(data: number): void;
166
- update_u32(data: number): void;
167
- update_u64(data: bigint): void;
168
- update_u128(data: bigint): void;
169
- update_i8(data: number): void;
170
- update_i16(data: number): void;
171
- update_i32(data: number): void;
172
- update_i64(data: bigint): void;
173
- update_i128(data: bigint): void;
174
- /**
175
- * Finalizes the hash and returns the result
176
- */
177
- digest(): bigint;
178
- /**
179
- * Resets the hasher
180
- */
181
- reset(): void;
182
- }
183
197
 
184
198
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
185
199
 
186
200
  export interface InitOutput {
187
- readonly memory: WebAssembly.Memory;
188
- readonly hash_v1: (a: number, b: number, c: number, d: bigint) => bigint;
189
- readonly __wbg_portablehashv1_free: (a: number, b: number) => void;
190
- readonly portablehashv1_new: (a: number, b: bigint) => number;
191
- readonly portablehashv1_update: (a: number, b: number, c: number) => void;
192
- readonly portablehashv1_digest: (a: number) => bigint;
193
- readonly portablehashv1_reset: (a: number) => void;
194
- readonly hash_v1_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
195
- readonly hash_v2: (a: number, b: number, c: number, d: bigint) => bigint;
196
- readonly __wbg_portablehashv2_free: (a: number, b: number) => void;
197
- readonly portablehashv2_new: (a: number, b: bigint) => number;
198
- readonly portablehashv2_update: (a: number, b: number, c: number) => void;
199
- readonly portablehashv2_digest: (a: number) => bigint;
200
- readonly portablehashv2_reset: (a: number) => void;
201
- readonly hash_v2_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
202
- readonly hash_v3: (a: number, b: number, c: number, d: bigint) => bigint;
203
- readonly hash_v3_micro: (a: number, b: number, c: number, d: bigint) => bigint;
204
- readonly hash_v3_nano: (a: number, b: number, c: number, d: bigint) => bigint;
205
- readonly hash_file_v3: (a: number, b: number, c: number, d: bigint) => [bigint, number, number];
206
- readonly portablehashv3_digest: (a: number) => bigint;
207
- readonly hash_v3_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
208
- readonly __wbg_fasthasher_free: (a: number, b: number) => void;
209
- readonly fasthasher_new: (a: number, b: bigint) => number;
210
- readonly fasthasher_update: (a: number, b: number, c: number) => void;
211
- readonly fasthasher_update_i8: (a: number, b: number) => void;
212
- readonly fasthasher_update_i16: (a: number, b: number) => void;
213
- readonly fasthasher_update_i32: (a: number, b: number) => void;
214
- readonly fasthasher_update_i64: (a: number, b: bigint) => void;
215
- readonly fasthasher_update_i128: (a: number, b: bigint, c: bigint) => void;
216
- readonly fasthasher_digest: (a: number) => bigint;
217
- readonly fasthasher_reset: (a: number) => void;
218
- readonly qualityhasher_update: (a: number, b: number, c: number) => void;
219
- readonly qualityhasher_digest: (a: number) => bigint;
220
- readonly fasthasher_update_u128: (a: number, b: bigint, c: bigint) => void;
221
- readonly qualityhasher_update_u128: (a: number, b: bigint, c: bigint) => void;
222
- readonly fasthasher_update_u8: (a: number, b: number) => void;
223
- readonly fasthasher_update_u16: (a: number, b: number) => void;
224
- readonly qualityhasher_update_u8: (a: number, b: number) => void;
225
- readonly qualityhasher_update_u16: (a: number, b: number) => void;
226
- readonly qualityhasher_new: (a: number, b: bigint) => number;
227
- readonly fasthasher_update_u32: (a: number, b: number) => void;
228
- readonly fasthasher_update_u64: (a: number, b: bigint) => void;
229
- readonly qualityhasher_update_u32: (a: number, b: number) => void;
230
- readonly qualityhasher_update_u64: (a: number, b: bigint) => void;
231
- readonly __wbg_qualityhasher_free: (a: number, b: number) => void;
232
- readonly __wbg_portablehashv3_free: (a: number, b: number) => void;
233
- readonly portablehashv3_reset: (a: number) => void;
234
- readonly qualityhasher_reset: (a: number) => void;
235
- readonly qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
236
- readonly qualityhasher_update_i64: (a: number, b: bigint) => void;
237
- readonly qualityhasher_update_i32: (a: number, b: number) => void;
238
- readonly qualityhasher_update_i16: (a: number, b: number) => void;
239
- readonly qualityhasher_update_i8: (a: number, b: number) => void;
240
- readonly portablehashv3_update: (a: number, b: number, c: number) => void;
241
- readonly portablehashv3_new: (a: number, b: bigint) => number;
242
- readonly __wbindgen_export_0: WebAssembly.Table;
243
- readonly __wbindgen_malloc: (a: number, b: number) => number;
244
- readonly __externref_table_alloc: () => number;
245
- readonly __externref_table_dealloc: (a: number) => void;
246
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
247
- readonly __wbindgen_start: () => void;
201
+ readonly memory: WebAssembly.Memory;
202
+ readonly __wbg_fasthasher_free: (a: number, b: number) => void;
203
+ readonly __wbg_portablehashv1_free: (a: number, b: number) => void;
204
+ readonly __wbg_portablehashv2_free: (a: number, b: number) => void;
205
+ readonly fasthasher_digest: (a: number) => bigint;
206
+ readonly fasthasher_new: (a: number, b: bigint) => number;
207
+ readonly fasthasher_reset: (a: number) => void;
208
+ readonly fasthasher_update: (a: number, b: number, c: number) => void;
209
+ readonly fasthasher_update_i128: (a: number, b: bigint, c: bigint) => void;
210
+ readonly fasthasher_update_i16: (a: number, b: number) => void;
211
+ readonly fasthasher_update_i32: (a: number, b: number) => void;
212
+ readonly fasthasher_update_i64: (a: number, b: bigint) => void;
213
+ readonly fasthasher_update_i8: (a: number, b: number) => void;
214
+ readonly hash_file_v3: (a: number, b: number, c: number, d: bigint) => [bigint, number, number];
215
+ readonly hash_v1: (a: number, b: number, c: number, d: bigint) => bigint;
216
+ readonly hash_v1_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
217
+ readonly hash_v2: (a: number, b: number, c: number, d: bigint) => bigint;
218
+ readonly hash_v2_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
219
+ readonly hash_v3: (a: number, b: number, c: number, d: bigint) => bigint;
220
+ readonly hash_v3_batch: (a: number, b: number, c: number, d: bigint) => [number, number, number, number];
221
+ readonly hash_v3_micro: (a: number, b: number, c: number, d: bigint) => bigint;
222
+ readonly hash_v3_nano: (a: number, b: number, c: number, d: bigint) => bigint;
223
+ readonly portablehashv1_digest: (a: number) => bigint;
224
+ readonly portablehashv1_new: (a: number, b: bigint) => number;
225
+ readonly portablehashv1_reset: (a: number) => void;
226
+ readonly portablehashv1_update: (a: number, b: number, c: number) => void;
227
+ readonly portablehashv2_digest: (a: number) => bigint;
228
+ readonly portablehashv2_new: (a: number, b: bigint) => number;
229
+ readonly portablehashv2_reset: (a: number) => void;
230
+ readonly portablehashv2_update: (a: number, b: number, c: number) => void;
231
+ readonly portablehashv3_digest: (a: number) => bigint;
232
+ readonly qualityhasher_digest: (a: number) => bigint;
233
+ readonly qualityhasher_update: (a: number, b: number, c: number) => void;
234
+ readonly fasthasher_update_u128: (a: number, b: bigint, c: bigint) => void;
235
+ readonly qualityhasher_update_u128: (a: number, b: bigint, c: bigint) => void;
236
+ readonly fasthasher_update_u16: (a: number, b: number) => void;
237
+ readonly fasthasher_update_u8: (a: number, b: number) => void;
238
+ readonly qualityhasher_update_u16: (a: number, b: number) => void;
239
+ readonly qualityhasher_update_u8: (a: number, b: number) => void;
240
+ readonly qualityhasher_new: (a: number, b: bigint) => number;
241
+ readonly fasthasher_update_u32: (a: number, b: number) => void;
242
+ readonly fasthasher_update_u64: (a: number, b: bigint) => void;
243
+ readonly qualityhasher_update_u32: (a: number, b: number) => void;
244
+ readonly qualityhasher_update_u64: (a: number, b: bigint) => void;
245
+ readonly __wbg_qualityhasher_free: (a: number, b: number) => void;
246
+ readonly __wbg_portablehashv3_free: (a: number, b: number) => void;
247
+ readonly portablehashv3_update: (a: number, b: number, c: number) => void;
248
+ readonly portablehashv3_reset: (a: number) => void;
249
+ readonly qualityhasher_update_i8: (a: number, b: number) => void;
250
+ readonly qualityhasher_update_i64: (a: number, b: bigint) => void;
251
+ readonly qualityhasher_update_i32: (a: number, b: number) => void;
252
+ readonly qualityhasher_update_i16: (a: number, b: number) => void;
253
+ readonly qualityhasher_update_i128: (a: number, b: bigint, c: bigint) => void;
254
+ readonly qualityhasher_reset: (a: number) => void;
255
+ readonly portablehashv3_new: (a: number, b: bigint) => number;
256
+ readonly __wbindgen_externrefs: WebAssembly.Table;
257
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
258
+ readonly __externref_table_dealloc: (a: number) => void;
259
+ readonly __externref_table_alloc: () => number;
260
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
261
+ readonly __wbindgen_start: () => void;
248
262
  }
249
263
 
250
264
  export type SyncInitInput = BufferSource | WebAssembly.Module;
265
+
251
266
  /**
252
- * Instantiates the given `module`, which can either be bytes or
253
- * a precompiled `WebAssembly.Module`.
254
- *
255
- * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
256
- *
257
- * @returns {InitOutput}
258
- */
267
+ * Instantiates the given `module`, which can either be bytes or
268
+ * a precompiled `WebAssembly.Module`.
269
+ *
270
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
271
+ *
272
+ * @returns {InitOutput}
273
+ */
259
274
  export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
260
275
 
261
276
  /**
262
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
263
- * for everything else, calls `WebAssembly.instantiate` directly.
264
- *
265
- * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
266
- *
267
- * @returns {Promise<InitOutput>}
268
- */
277
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
278
+ * for everything else, calls `WebAssembly.instantiate` directly.
279
+ *
280
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
281
+ *
282
+ * @returns {Promise<InitOutput>}
283
+ */
269
284
  export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;