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