sonic-ws 2.1.0 → 2.3.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.
- package/README.md +19 -6
- package/bin/sonicws.mjs +159 -0
- package/bundled/bundle.js +1 -1
- package/bundled/bundle.wasm +0 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +12 -1
- package/dist/native/wasm/node/sonic_ws_core_bg.wasm +0 -0
- package/dist/native/wrapper.d.ts +3 -3
- package/dist/native/wrapper.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/ws/Connection.d.ts +16 -3
- package/dist/ws/Connection.js +1 -1
- package/dist/ws/PacketProcessor.js +1 -1
- package/dist/ws/client/core/ClientCore.d.ts +70 -9
- package/dist/ws/client/core/ClientCore.js +1 -1
- package/dist/ws/client/node/ClientNode.d.ts +9 -3
- package/dist/ws/client/node/ClientNode.js +1 -1
- package/dist/ws/debug/PacketLogger.d.ts +30 -0
- package/dist/ws/debug/PacketLogger.js +7 -0
- package/dist/ws/packets/PacketType.d.ts +4 -3
- package/dist/ws/packets/PacketType.js +1 -1
- package/dist/ws/packets/Packets.d.ts +21 -2
- package/dist/ws/packets/Packets.js +1 -1
- package/dist/ws/server/Adapter.d.ts +21 -0
- package/dist/ws/server/Adapter.js +7 -0
- package/dist/ws/server/SonicWSConnection.d.ts +28 -2
- package/dist/ws/server/SonicWSConnection.js +1 -1
- package/dist/ws/server/SonicWSServer.d.ts +46 -8
- package/dist/ws/server/SonicWSServer.js +1 -1
- package/dist/ws/util/packets/BatchHelper.js +1 -1
- package/dist/ws/util/packets/ConstructorRegistry.d.ts +10 -0
- package/dist/ws/util/packets/ConstructorRegistry.js +7 -0
- package/dist/ws/util/packets/ControlProtocol.d.ts +47 -0
- package/dist/ws/util/packets/ControlProtocol.js +7 -0
- package/dist/ws/util/packets/PacketHolder.js +1 -1
- package/dist/ws/util/packets/PacketManifest.d.ts +17 -0
- package/dist/ws/util/packets/PacketManifest.js +7 -0
- package/dist/ws/util/packets/PacketUtils.d.ts +45 -15
- package/dist/ws/util/packets/PacketUtils.js +1 -1
- package/dist/ws/util/packets/SchemaValidation.d.ts +17 -0
- package/dist/ws/util/packets/SchemaValidation.js +7 -0
- package/package.json +13 -7
- package/dist/native/wasm/pkg/README.md +0 -6
- package/dist/native/wasm/pkg/package.json +0 -19
- package/dist/native/wasm/pkg/sonic_ws_core.d.ts +0 -51
- package/dist/native/wasm/pkg/sonic_ws_core.js +0 -7
- package/dist/native/wasm/pkg/sonic_ws_core_bg.js +0 -7
- package/dist/native/wasm/pkg/sonic_ws_core_bg.wasm +0 -0
- package/dist/native/wasm/pkg/sonic_ws_core_bg.wasm.d.ts +0 -36
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026 Lily (liwybloc)
|
|
3
|
+
* License-Identifier: LicenseRef-Lily-Personal-NonCommercial-2026
|
|
4
|
+
* See LICENSE for personal, non-commercial license terms.
|
|
5
|
+
*/
|
|
6
|
+
import { Packet } from "../../packets/Packets";
|
|
7
|
+
export type SchemaValidationResult = {
|
|
8
|
+
errors: string[];
|
|
9
|
+
warnings: string[];
|
|
10
|
+
};
|
|
11
|
+
/** Performs whole-table checks that individual CreatePacket calls cannot see. */
|
|
12
|
+
export declare function ValidatePacketSchema(packets: readonly Packet<any>[], options?: {
|
|
13
|
+
direction?: "client" | "server";
|
|
14
|
+
warnUnbounded?: boolean;
|
|
15
|
+
}): SchemaValidationResult;
|
|
16
|
+
/** Throws when a packet table contains structural schema errors. */
|
|
17
|
+
export declare function AssertPacketSchema(packets: readonly Packet<any>[], options?: Parameters<typeof ValidatePacketSchema>[1]): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026 Lily (liwybloc)
|
|
3
|
+
* License-Identifier: LicenseRef-Lily-Personal-NonCommercial-2026
|
|
4
|
+
* See LICENSE for personal, non-commercial license terms.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.ValidatePacketSchema=n,exports.AssertPacketSchema=function(e,a){const t=n(e,a);if(t.errors.length)throw new Error(`Invalid SonicWS packet schema:\n- ${t.errors.join("\n- ")}`);for(const e of t.warnings)console.warn(`SonicWS schema warning: ${e}`)};const e=require("../../packets/PacketType"),a=new Set([e.PacketType.UBYTES,e.PacketType.USHORTS,e.PacketType.UVARINT]),t=new Set([e.PacketType.BYTES,e.PacketType.UBYTES,e.PacketType.SHORTS,e.PacketType.USHORTS,e.PacketType.VARINT,e.PacketType.UVARINT,e.PacketType.DELTAS,e.PacketType.FLOATS,e.PacketType.DOUBLES]);function n(n,c={}){const s=[],r=[],p=new Set,o=new Map,i=new Set;n.length>254&&s.push(`Packet table contains ${n.length} packets; the maximum is 254`);for(const e of n){p.has(e.tag)&&s.push(`Duplicate packet tag "${e.tag}"`),p.add(e.tag),e.isParent&&o.set(e.tag,e),e.replay&&e.dataBatching&&s.push(`Packet "${e.tag}" combines replay with batching`);const n=Array.isArray(e.type)?e.type:[e.type];e.quantized&&n.some(e=>!t.has(e))&&s.push(`Packet "${e.tag}" quantizes a non-numeric type`),void 0!==e.valueMin&&e.valueMin<0&&n.some(e=>a.has(e))&&s.push(`Packet "${e.tag}" has a negative minimum for an unsigned type`),!e.fields||e.autoFlatten||e.object||e.dataMin!==e.dataMax||e.fields.length===e.dataMax||s.push(`Packet "${e.tag}" schema length does not match its fixed value count`);const u=Array.isArray(e.dataMax)?e.dataMax.some(e=>e>=2048383):e.dataMax>=2048383;if(c.warnUnbounded&&"client"===c.direction&&u&&r.push(`Client packet "${e.tag}" has an effectively unbounded value count`),e.parent&&e.variant){const a=`${e.parent}.${e.variant}`;i.has(a)&&s.push(`Duplicate packet-group variant "${a}"`),i.add(a)}}for(const a of n){if(!a.parent)continue;const t=o.get(a.parent);t?t.type!==e.PacketType.NONE&&s.push(`Packet-group parent "${a.parent}" must use PacketType.NONE`):s.push(`Packet "${a.tag}" references missing group parent "${a.parent}"`)}return{errors:s,warnings:r}}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sonic-ws",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Ultra-lightweight, high-performance, and bandwidth efficient websocket library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"sonicws": "bin/sonicws.mjs"
|
|
9
|
+
},
|
|
7
10
|
"files": [
|
|
8
11
|
"dist/**/*",
|
|
12
|
+
"bin/sonicws.mjs",
|
|
9
13
|
"bundled/bundle.js",
|
|
10
14
|
"bundled/bundle.wasm",
|
|
11
15
|
"README.md",
|
|
@@ -13,18 +17,20 @@
|
|
|
13
17
|
],
|
|
14
18
|
"scripts": {
|
|
15
19
|
"webpack": "webpack --mode production",
|
|
16
|
-
|
|
20
|
+
|
|
17
21
|
"build_wasm_browser": "wasm-pack build --release --target bundler --out-dir ../ts/src/native/wasm/pkg --out-name sonic_ws_core ../core --features wasm --no-default-features",
|
|
18
22
|
"build_wasm_node": "wasm-pack build --release --target nodejs --out-dir ../ts/src/native/wasm/node --out-name sonic_ws_core ../core --features wasm --no-default-features",
|
|
19
23
|
"build_wasm": "npm run build_wasm_browser && npm run build_wasm_node",
|
|
20
24
|
"build_web": "npm run build_wasm_browser && tsc --moduleResolution nodenext --module nodenext --outDir ./dist src/ws/client/browser/ClientBrowser.ts && cpy \"src/native/wasm/pkg/*\" dist/native/wasm/pkg --flat && rimraf ./dist/native/wasm/pkg/.gitignore && npm run webpack && node package-files.mjs",
|
|
21
|
-
"build_node": "npm run
|
|
22
|
-
"build": "npm run build_node && npm run build_web && rimraf ./dist/ws/client/browser && rimraf ./dist/ws/debug/DebugClient.d.ts && rimraf ./dist/ws/debug/DebugClient.js && node minify.mjs && node package-files.mjs",
|
|
23
|
-
|
|
25
|
+
"build_node": "npm run build_wasm_node && rimraf ./dist && tsc -d && cpy \"src/native/wasm/node/*\" dist/native/wasm/node --flat && rimraf ./dist/native/wasm/node/.gitignore",
|
|
26
|
+
"build": "npm run build_node && npm run build_web && rimraf ./dist/native/wasm/pkg ./dist/ws/client/browser && rimraf ./dist/ws/debug/DebugClient.d.ts && rimraf ./dist/ws/debug/DebugClient.js && node minify.mjs && node package-files.mjs",
|
|
27
|
+
|
|
24
28
|
"test_web": "npm run build && node tests/test_web.mjs",
|
|
25
|
-
"test_node": "npm
|
|
29
|
+
"test_node": "npm run build_node && node tests/test_node.mjs",
|
|
30
|
+
"test_conformance": "npm run build_node && node tests/test_conformance.mjs",
|
|
31
|
+
"benchmark": "npm run build_node && node ../../benchmarks/run.mjs && node ../../benchmarks/transport.mjs",
|
|
26
32
|
"prepack": "npm run build",
|
|
27
|
-
|
|
33
|
+
|
|
28
34
|
"stage_package": "node package-files.mjs",
|
|
29
35
|
"publish:assets": "rimraf ../../release/SonicWS_bundle.js ../../release/SonicWS_core.wasm && cp ../../bundled/bundle.js ../../release/bundle.js && cp ../../bundled/bundle.wasm ../../release/bundle.wasm"
|
|
30
36
|
},
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sonic-ws-core",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"description": "Language-neutral SonicWS packet codec core",
|
|
5
|
-
"version": "0.1.0",
|
|
6
|
-
"license": "LicenseRef-Lily-Personal-NonCommercial-2026",
|
|
7
|
-
"files": [
|
|
8
|
-
"sonic_ws_core_bg.wasm",
|
|
9
|
-
"sonic_ws_core.js",
|
|
10
|
-
"sonic_ws_core_bg.js",
|
|
11
|
-
"sonic_ws_core.d.ts"
|
|
12
|
-
],
|
|
13
|
-
"main": "sonic_ws_core.js",
|
|
14
|
-
"types": "sonic_ws_core.d.ts",
|
|
15
|
-
"sideEffects": [
|
|
16
|
-
"./sonic_ws_core.js",
|
|
17
|
-
"./snippets/*"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2026 Lily (liwybloc)
|
|
3
|
-
* License-Identifier: LicenseRef-Lily-Personal-NonCommercial-2026
|
|
4
|
-
* See LICENSE for personal, non-commercial license terms.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export function decodeBatch(data: Uint8Array, compressed: boolean, max: number, max_output_size?: number | null): Array<any>;
|
|
10
|
-
|
|
11
|
-
export function decodeBooleans(data: Uint8Array, count: number): Array<any>;
|
|
12
|
-
|
|
13
|
-
export function decodeFloats(value: number, data: Uint8Array): Array<any>;
|
|
14
|
-
|
|
15
|
-
export function decodeHex(data: Uint8Array): string;
|
|
16
|
-
|
|
17
|
-
export function decodeRaw(data: Uint8Array): Uint8Array;
|
|
18
|
-
|
|
19
|
-
export function decodeSigned(value: number, data: Uint8Array): Array<any>;
|
|
20
|
-
|
|
21
|
-
export function decodeStrings(value: number, data: Uint8Array): Array<any>;
|
|
22
|
-
|
|
23
|
-
export function decodeUnsigned(value: number, data: Uint8Array): Array<any>;
|
|
24
|
-
|
|
25
|
-
export function deflateRaw(data: Uint8Array): Uint8Array;
|
|
26
|
-
|
|
27
|
-
export function encodeBatch(values: Array<any>, compressed: boolean): Uint8Array;
|
|
28
|
-
|
|
29
|
-
export function encodeBooleans(values: Array<any>): Uint8Array;
|
|
30
|
-
|
|
31
|
-
export function encodeFloats(value: number, values: Array<any>): Uint8Array;
|
|
32
|
-
|
|
33
|
-
export function encodeHex(value: string): Uint8Array;
|
|
34
|
-
|
|
35
|
-
export function encodeSigned(value: number, values: Array<any>): Uint8Array;
|
|
36
|
-
|
|
37
|
-
export function encodeStrings(value: number, values: Array<any>): Uint8Array;
|
|
38
|
-
|
|
39
|
-
export function encodeUnsigned(value: number, values: Array<any>): Uint8Array;
|
|
40
|
-
|
|
41
|
-
export function frameObject(sectors: Array<any>): Uint8Array;
|
|
42
|
-
|
|
43
|
-
export function inflateRaw(data: Uint8Array, max_output_size?: number | null): Uint8Array;
|
|
44
|
-
|
|
45
|
-
export function unframeObject(data: Uint8Array, count: number): Array<any>;
|
|
46
|
-
|
|
47
|
-
export function validateEncoded(value: number, data: Uint8Array, min: number, max: number, compressed: boolean, batched: boolean, max_batch?: number | null): void;
|
|
48
|
-
|
|
49
|
-
export function validateEnum(data: Uint8Array, size: number, min: number, max: number): void;
|
|
50
|
-
|
|
51
|
-
export function validateObject(data: Uint8Array, kinds: Array<any>, mins: Array<any>, maxes: Array<any>, enum_sizes: Array<any>): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2026 Lily (liwybloc)
|
|
3
|
-
* License-Identifier: LicenseRef-Lily-Personal-NonCommercial-2026
|
|
4
|
-
* See LICENSE for personal, non-commercial license terms.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import*as e from"./sonic_ws_core_bg.wasm";import{__wbg_set_wasm as d}from"./sonic_ws_core_bg.js";d(e),e.__wbindgen_start();export{decodeBatch,decodeBooleans,decodeFloats,decodeHex,decodeRaw,decodeSigned,decodeStrings,decodeUnsigned,deflateRaw,encodeBatch,encodeBooleans,encodeFloats,encodeHex,encodeSigned,encodeStrings,encodeUnsigned,frameObject,inflateRaw,unframeObject,validateEncoded,validateEnum,validateObject}from"./sonic_ws_core_bg.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2026 Lily (liwybloc)
|
|
3
|
-
* License-Identifier: LicenseRef-Lily-Personal-NonCommercial-2026
|
|
4
|
-
* See LICENSE for personal, non-commercial license terms.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export function decodeBatch(e,n,t,o){const r=l.decodeBatch(e,n,t,i(o)?Number.MAX_SAFE_INTEGER:o>>>0);if(r[2])throw f(r[1]);return f(r[0])}export function decodeBooleans(e,n){const t=l.decodeBooleans(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function decodeFloats(e,n){const t=l.decodeFloats(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function decodeHex(e){let n,t;try{const i=l.decodeHex(e);var r=i[0],c=i[1];if(i[3])throw r=0,c=0,f(i[2]);return n=r,t=c,o(r,c)}finally{l.__wbindgen_free(n,t,1)}}export function decodeRaw(e){const n=l.decodeRaw(e);if(n[2])throw f(n[1]);return f(n[0])}export function decodeSigned(e,n){const t=l.decodeSigned(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function decodeStrings(e,n){const t=l.decodeStrings(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function decodeUnsigned(e,n){const t=l.decodeUnsigned(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function deflateRaw(e){const n=l.deflateRaw(e);if(n[2])throw f(n[1]);return f(n[0])}export function encodeBatch(e,n){const t=l.encodeBatch(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function encodeBooleans(e){const n=l.encodeBooleans(e);if(n[2])throw f(n[1]);return f(n[0])}export function encodeFloats(e,n){const t=l.encodeFloats(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function encodeHex(e){const n=d(e,l.__wbindgen_malloc,l.__wbindgen_realloc),t=w,o=l.encodeHex(n,t);if(o[2])throw f(o[1]);return f(o[0])}export function encodeSigned(e,n){const t=l.encodeSigned(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function encodeStrings(e,n){const t=l.encodeStrings(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function encodeUnsigned(e,n){const t=l.encodeUnsigned(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function frameObject(e){const n=l.frameObject(e);if(n[2])throw f(n[1]);return f(n[0])}export function inflateRaw(e,n){const t=l.inflateRaw(e,i(n)?Number.MAX_SAFE_INTEGER:n>>>0);if(t[2])throw f(t[1]);return f(t[0])}export function unframeObject(e,n){const t=l.unframeObject(e,n);if(t[2])throw f(t[1]);return f(t[0])}export function validateEncoded(e,n,t,o,r,c,d){const u=l.validateEncoded(e,n,t,o,r,c,i(d)?Number.MAX_SAFE_INTEGER:d>>>0);if(u[1])throw f(u[0])}export function validateEnum(e,n,t,o){const r=l.validateEnum(e,n,t,o);if(r[1])throw f(r[0])}export function validateObject(e,n,t,o,r){const c=l.validateObject(e,n,t,o,r);if(c[1])throw f(c[0])}export function __wbg___wbindgen_boolean_get_fa956cfa2d1bd751(e){const n="boolean"==typeof e?e:void 0;return i(n)?16777215:n?1:0}export function __wbg___wbindgen_number_get_394265ed1e1b84ee(e,n){const o="number"==typeof n?n:void 0;t().setFloat64(e+8,i(o)?0:o,!0),t().setInt32(e+0,!i(o),!0)}export function __wbg___wbindgen_string_get_b0ca35b86a603356(e,n){const o="string"==typeof n?n:void 0;var r=i(o)?0:d(o,l.__wbindgen_malloc,l.__wbindgen_realloc),c=w;t().setInt32(e+4,c,!0),t().setInt32(e+0,r,!0)}export function __wbg___wbindgen_throw_344f42d3211c4765(e,n){throw new Error(o(e,n))}export function __wbg_get_unchecked_6e0ad6d2a41b06f6(e,n){return e[n>>>0]}export function __wbg_length_1f0964f4a5e2c6d8(e){return e.length}export function __wbg_length_370319915dc99107(e){return e.length}export function __wbg_new_32b398fb48b6d94a(){return new Array}export function __wbg_new_cd45aabdf6073e84(e){return new Uint8Array(e)}export function __wbg_new_from_slice_77cdfb7977362f3c(n,t){return new Uint8Array(e(n,t))}export function __wbg_prototypesetcall_4770620bbe4688a0(n,t,o){Uint8Array.prototype.set.call(e(n,t),o)}export function __wbg_push_d2ae3af0c1217ae6(e,n){return e.push(n)}export function __wbindgen_cast_0000000000000001(e){return e}export function __wbindgen_cast_0000000000000002(e,n){return o(e,n)}export function __wbindgen_init_externref_table(){const e=l.__wbindgen_externrefs,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)}function e(e,n){return e>>>=0,c().subarray(e/1,e/1+n)}let n=null;function t(){return(null===n||!0===n.buffer.detached||void 0===n.buffer.detached&&n.buffer!==l.memory.buffer)&&(n=new DataView(l.memory.buffer)),n}function o(e,n){return function(e,n){a+=n,a>=_&&(u=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),u.decode(),a=n);return u.decode(c().subarray(e,e+n))}(e>>>0,n)}let r=null;function c(){return null!==r&&0!==r.byteLength||(r=new Uint8Array(l.memory.buffer)),r}function i(e){return null==e}function d(e,n,t){if(void 0===t){const t=s.encode(e),o=n(t.length,1)>>>0;return c().subarray(o,o+t.length).set(t),w=t.length,o}let o=e.length,r=n(o,1)>>>0;const i=c();let d=0;for(;d<o;d++){const n=e.charCodeAt(d);if(n>127)break;i[r+d]=n}if(d!==o){0!==d&&(e=e.slice(d)),r=t(r,o,o=d+3*e.length,1)>>>0;const n=c().subarray(r+d,r+o);d+=s.encodeInto(e,n).written,r=t(r,o,d,1)>>>0}return w=d,r}function f(e){const n=l.__wbindgen_externrefs.get(e);return l.__externref_table_dealloc(e),n}let u=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});u.decode();const _=2146435072;let a=0;const s=new TextEncoder;"encodeInto"in s||(s.encodeInto=function(e,n){const t=s.encode(e);return n.set(t),{read:e.length,written:t.length}});let l,w=0;export function __wbg_set_wasm(e){l=e}
|
|
Binary file
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2026 Lily (liwybloc)
|
|
3
|
-
* License-Identifier: LicenseRef-Lily-Personal-NonCommercial-2026
|
|
4
|
-
* See LICENSE for personal, non-commercial license terms.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export const memory: WebAssembly.Memory;
|
|
9
|
-
export const decodeBatch: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
10
|
-
export const decodeBooleans: (a: any, b: number) => [number, number, number];
|
|
11
|
-
export const decodeFloats: (a: number, b: any) => [number, number, number];
|
|
12
|
-
export const decodeHex: (a: any) => [number, number, number, number];
|
|
13
|
-
export const decodeRaw: (a: any) => [number, number, number];
|
|
14
|
-
export const decodeSigned: (a: number, b: any) => [number, number, number];
|
|
15
|
-
export const decodeStrings: (a: number, b: any) => [number, number, number];
|
|
16
|
-
export const decodeUnsigned: (a: number, b: any) => [number, number, number];
|
|
17
|
-
export const deflateRaw: (a: any) => [number, number, number];
|
|
18
|
-
export const encodeBatch: (a: any, b: number) => [number, number, number];
|
|
19
|
-
export const encodeBooleans: (a: any) => [number, number, number];
|
|
20
|
-
export const encodeFloats: (a: number, b: any) => [number, number, number];
|
|
21
|
-
export const encodeHex: (a: number, b: number) => [number, number, number];
|
|
22
|
-
export const encodeSigned: (a: number, b: any) => [number, number, number];
|
|
23
|
-
export const encodeStrings: (a: number, b: any) => [number, number, number];
|
|
24
|
-
export const encodeUnsigned: (a: number, b: any) => [number, number, number];
|
|
25
|
-
export const frameObject: (a: any) => [number, number, number];
|
|
26
|
-
export const inflateRaw: (a: any, b: number) => [number, number, number];
|
|
27
|
-
export const unframeObject: (a: any, b: number) => [number, number, number];
|
|
28
|
-
export const validateEncoded: (a: number, b: any, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
29
|
-
export const validateEnum: (a: any, b: number, c: number, d: number) => [number, number];
|
|
30
|
-
export const validateObject: (a: any, b: any, c: any, d: any, e: any) => [number, number];
|
|
31
|
-
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
32
|
-
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
33
|
-
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
34
|
-
export const __externref_table_dealloc: (a: number) => void;
|
|
35
|
-
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
36
|
-
export const __wbindgen_start: () => void;
|