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
|
@@ -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,130 +194,3 @@ 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
|
-
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/* @ts-self-types="./rapidhash_wasm_vn.d.ts" */
|
|
2
|
+
|
|
1
3
|
import * as wasm from "./rapidhash_wasm_vn_bg.wasm";
|
|
2
|
-
export * from "./rapidhash_wasm_vn_bg.js";
|
|
3
4
|
import { __wbg_set_wasm } from "./rapidhash_wasm_vn_bg.js";
|
|
4
5
|
__wbg_set_wasm(wasm);
|
|
5
6
|
wasm.__wbindgen_start();
|
|
7
|
+
export {
|
|
8
|
+
FastHasher, PortableHashV1, PortableHashV2, PortableHashV3, QualityHasher, hash_file_v3, hash_v1, hash_v1_batch, hash_v2, hash_v2_batch, hash_v3, hash_v3_batch, hash_v3_micro, hash_v3_nano
|
|
9
|
+
} from "./rapidhash_wasm_vn_bg.js";
|