@utoo/web 1.2.0 → 1.2.2
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/esm/loaderWorker.js +1 -1
- package/esm/utoo/index.d.ts +16 -20
- package/esm/utoo/index.js +536 -575
- package/esm/utoo/index_bg.wasm +0 -0
- package/package.json +4 -4
- package/esm/cb25445c9f3a2acfc918.wasm +0 -0
package/esm/utoo/index.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {string} filter
|
|
3
|
+
*/
|
|
4
|
+
export function initLogFilter(filter: string): void;
|
|
5
|
+
export function init_pack(): void;
|
|
1
6
|
/**
|
|
2
7
|
* @param {number} worker_id
|
|
3
8
|
* @returns {Promise<WasmTaskMessage>}
|
|
4
9
|
*/
|
|
5
10
|
export function recvTaskMessageInWorker(worker_id: number): Promise<WasmTaskMessage>;
|
|
6
|
-
/**
|
|
7
|
-
* @param {any} message
|
|
8
|
-
* @returns {Promise<void>}
|
|
9
|
-
*/
|
|
10
|
-
export function sendTaskMessage(message: any): Promise<void>;
|
|
11
11
|
/**
|
|
12
12
|
* @param {Function} creator
|
|
13
13
|
* @param {Function} terminator
|
|
14
14
|
*/
|
|
15
15
|
export function registerWorkerScheduler(creator: Function, terminator: Function): void;
|
|
16
16
|
/**
|
|
17
|
-
* @param {
|
|
18
|
-
|
|
19
|
-
export function workerCreated(worker_id: number): void;
|
|
20
|
-
export function init_pack(): void;
|
|
21
|
-
/**
|
|
22
|
-
* @param {string} filter
|
|
17
|
+
* @param {any} message
|
|
18
|
+
* @returns {Promise<void>}
|
|
23
19
|
*/
|
|
24
|
-
export function
|
|
20
|
+
export function sendTaskMessage(message: any): Promise<void>;
|
|
25
21
|
/**
|
|
26
22
|
* Entry point for web workers
|
|
27
23
|
* @param {number} ptr
|
|
28
24
|
*/
|
|
29
25
|
export function wasm_thread_entry_point(ptr: number): void;
|
|
26
|
+
/**
|
|
27
|
+
* @param {number} worker_id
|
|
28
|
+
*/
|
|
29
|
+
export function workerCreated(worker_id: number): void;
|
|
30
30
|
export class CreateSyncAccessHandleOptions {
|
|
31
31
|
static __wrap(ptr: any): any;
|
|
32
32
|
__destroy_into_raw(): number | undefined;
|
|
@@ -246,6 +246,10 @@ export class WasmTaskMessage {
|
|
|
246
246
|
__destroy_into_raw(): number | undefined;
|
|
247
247
|
__wbg_ptr: number | undefined;
|
|
248
248
|
free(): void;
|
|
249
|
+
/**
|
|
250
|
+
* @returns {Uint8Array}
|
|
251
|
+
*/
|
|
252
|
+
get data(): Uint8Array;
|
|
249
253
|
/**
|
|
250
254
|
* @param {number} arg0
|
|
251
255
|
*/
|
|
@@ -254,14 +258,6 @@ export class WasmTaskMessage {
|
|
|
254
258
|
* @returns {number}
|
|
255
259
|
*/
|
|
256
260
|
get taskId(): number;
|
|
257
|
-
/**
|
|
258
|
-
* @param {string} arg0
|
|
259
|
-
*/
|
|
260
|
-
set data(arg0: string);
|
|
261
|
-
/**
|
|
262
|
-
* @returns {string}
|
|
263
|
-
*/
|
|
264
|
-
get data(): string;
|
|
265
261
|
}
|
|
266
262
|
export class WebWorkerCreation {
|
|
267
263
|
static __wrap(ptr: any): any;
|