@unyt/datex 0.0.7 → 0.0.9
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/_dnt.shims.d.ts +1 -27
- package/esm/_dnt.shims.d.ts.map +1 -1
- package/esm/_dnt.shims.js +1 -31
- package/esm/datex-core/datex_core_js.internal.d.ts +49 -40
- package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -1
- package/esm/datex-core/datex_core_js.internal.js +143 -125
- package/esm/datex-core/datex_core_js.js +13 -16
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core/wasm_url.node.js +1 -0
- package/esm/datex-core.d.ts +6 -0
- package/esm/datex-core.d.ts.map +1 -1
- package/esm/datex-core.js +6 -0
- package/esm/default.d.ts +11 -0
- package/esm/default.d.ts.map +1 -0
- package/esm/default.js +22 -0
- package/esm/deno.json +22 -6
- package/esm/dif/builders.d.ts +5 -0
- package/esm/dif/builders.d.ts.map +1 -1
- package/esm/dif/builders.js +5 -0
- package/esm/dif/core.d.ts +44 -0
- package/esm/dif/core.d.ts.map +1 -0
- package/esm/dif/core.js +56 -0
- package/esm/dif/definitions.d.ts +43 -36
- package/esm/dif/definitions.d.ts.map +1 -1
- package/esm/dif/definitions.js +14 -51
- package/esm/dif/dif-handler.d.ts +17 -0
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +22 -5
- package/esm/dif/display.d.ts +23 -0
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +25 -4
- package/esm/dif/mod.d.ts +5 -0
- package/esm/dif/mod.d.ts.map +1 -0
- package/esm/dif/mod.js +4 -0
- package/esm/mod.d.ts +12 -5
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +10 -23
- package/esm/network/com-hub.d.ts +30 -0
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +32 -0
- package/esm/network/com-interface.d.ts +18 -0
- package/esm/network/com-interface.d.ts.map +1 -1
- package/esm/network/com-interface.js +13 -0
- package/esm/network/interface-impls/base.d.ts +28 -1
- package/esm/network/interface-impls/base.d.ts.map +1 -1
- package/esm/network/interface-impls/base.js +30 -4
- package/esm/network/interface-impls/websocket-client.d.ts +3 -1
- package/esm/network/interface-impls/websocket-client.d.ts.map +1 -1
- package/esm/network/interface-impls/websocket-client.js +3 -1
- package/esm/network/mod.d.ts +9 -0
- package/esm/network/mod.d.ts.map +1 -0
- package/esm/network/mod.js +8 -0
- package/esm/refs/ref.d.ts +3 -0
- package/esm/refs/ref.d.ts.map +1 -1
- package/esm/refs/ref.js +3 -0
- package/esm/runtime/runtime.d.ts +55 -5
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +49 -3
- package/esm/runtime/special-core-types.d.ts +18 -2
- package/esm/runtime/special-core-types.d.ts.map +1 -1
- package/esm/runtime/special-core-types.js +19 -3
- package/esm/utils/js-runtime-compat/js-runtime-interface.d.ts +10 -0
- package/esm/utils/js-runtime-compat/js-runtime-interface.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/js-runtime-interface.js +1 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts +18 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/js-runtime.js +43 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.js +22 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.js +19 -0
- package/esm/utils/js-runtime-compat/runtimes/node.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/node.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/node.js +21 -0
- package/package.json +7 -19
- package/esm/_dnt.polyfills.d.ts +0 -101
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -127
- package/esm/network/interface-impls/websocket-server-deno.d.ts +0 -9
- package/esm/network/interface-impls/websocket-server-deno.d.ts.map +0 -1
- package/esm/network/interface-impls/websocket-server-deno.js +0 -45
package/esm/dif/display.d.ts
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module
|
|
3
|
+
* @description
|
|
4
|
+
* This module contains helper functions to convert DIF structures to display strings.
|
|
5
|
+
*/
|
|
1
6
|
import { type DIFReference, DIFReferenceMutability, type DIFRepresentationValue, type DIFTypeContainer, type DIFValueContainer } from "./definitions.js";
|
|
7
|
+
/**
|
|
8
|
+
* Converts a DIF reference mutability to a display string.
|
|
9
|
+
*/
|
|
2
10
|
export declare function mutabilityToDisplayString(mut: DIFReferenceMutability): string;
|
|
11
|
+
/**
|
|
12
|
+
* Converts a DIF reference to a display string.
|
|
13
|
+
*/
|
|
3
14
|
export declare function difReferenceToDisplayString(reference: DIFReference): string;
|
|
15
|
+
/**
|
|
16
|
+
* Converts a DIF value container to a display string.
|
|
17
|
+
*/
|
|
4
18
|
export declare function difValueContainerToDisplayString(container: DIFValueContainer): string;
|
|
19
|
+
/**
|
|
20
|
+
* Converts a DIF representation value to a display string.
|
|
21
|
+
*/
|
|
5
22
|
export declare function difRepresentationValueToDisplayString(difRepValue: DIFRepresentationValue): string;
|
|
23
|
+
/**
|
|
24
|
+
* Converts a DIF type container to a display string.
|
|
25
|
+
*/
|
|
6
26
|
export declare function difTypeContainerToDisplayString(difType: DIFTypeContainer): string;
|
|
27
|
+
/**
|
|
28
|
+
* Converts a core type address to a display string.
|
|
29
|
+
*/
|
|
7
30
|
export declare function addressToDisplayString(address: string): string;
|
|
8
31
|
//# sourceMappingURL=display.d.ts.map
|
package/esm/dif/display.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/dif/display.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/dif/display.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACH,KAAK,YAAY,EACjB,sBAAsB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACzB,MAAM,kBAAkB,CAAC;AAG1B;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,sBAAsB,GAAG,MAAM,CAO7E;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACvC,SAAS,EAAE,YAAY,GACxB,MAAM,CAKR;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC5C,SAAS,EAAE,iBAAiB,GAC7B,MAAM,CAgBR;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CACjD,WAAW,EAAE,sBAAsB,GACpC,MAAM,CAyBR;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC3C,OAAO,EAAE,gBAAgB,GAC1B,MAAM,CAQR;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAS9D"}
|
package/esm/dif/display.js
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module
|
|
3
|
+
* @description
|
|
4
|
+
* This module contains helper functions to convert DIF structures to display strings.
|
|
5
|
+
*/
|
|
6
|
+
import { DIFReferenceMutability, } from "./definitions.js";
|
|
7
|
+
import { CoreTypeAddress } from "./core.js";
|
|
8
|
+
/**
|
|
9
|
+
* Converts a DIF reference mutability to a display string.
|
|
10
|
+
*/
|
|
2
11
|
export function mutabilityToDisplayString(mut) {
|
|
3
12
|
if (mut === DIFReferenceMutability.Mutable) {
|
|
4
13
|
return "&mut ";
|
|
5
14
|
}
|
|
6
|
-
else if (mut === DIFReferenceMutability.Final) {
|
|
7
|
-
return "&final ";
|
|
8
|
-
}
|
|
9
15
|
else if (mut === DIFReferenceMutability.Immutable) {
|
|
10
16
|
return "&";
|
|
11
17
|
}
|
|
12
18
|
throw new Error("Unknown mutability: " + mut);
|
|
13
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Converts a DIF reference to a display string.
|
|
22
|
+
*/
|
|
14
23
|
export function difReferenceToDisplayString(reference) {
|
|
15
24
|
const typeString = difTypeContainerToDisplayString(reference.allowed_type);
|
|
16
25
|
const valueString = difValueContainerToDisplayString(reference.value);
|
|
17
26
|
const mutString = mutabilityToDisplayString(reference.mut);
|
|
18
27
|
return `${mutString}${valueString} (allowed: ${typeString})`;
|
|
19
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Converts a DIF value container to a display string.
|
|
31
|
+
*/
|
|
20
32
|
export function difValueContainerToDisplayString(container) {
|
|
21
33
|
if (typeof container === "string") {
|
|
22
34
|
return addressToDisplayString(container);
|
|
@@ -34,6 +46,9 @@ export function difValueContainerToDisplayString(container) {
|
|
|
34
46
|
}
|
|
35
47
|
}
|
|
36
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Converts a DIF representation value to a display string.
|
|
51
|
+
*/
|
|
37
52
|
export function difRepresentationValueToDisplayString(difRepValue) {
|
|
38
53
|
if (Array.isArray(difRepValue)) {
|
|
39
54
|
return `[${difRepValue.map((v) => {
|
|
@@ -53,6 +68,9 @@ export function difRepresentationValueToDisplayString(difRepValue) {
|
|
|
53
68
|
return JSON.stringify(difRepValue);
|
|
54
69
|
}
|
|
55
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Converts a DIF type container to a display string.
|
|
73
|
+
*/
|
|
56
74
|
export function difTypeContainerToDisplayString(difType) {
|
|
57
75
|
if (typeof difType === "string") {
|
|
58
76
|
return addressToDisplayString(difType);
|
|
@@ -61,6 +79,9 @@ export function difTypeContainerToDisplayString(difType) {
|
|
|
61
79
|
return `{ name: ${difType.name}, kind: ${difType.kind}, def: ${JSON.stringify(difType.def)}, mut: ${difType.mut} }`;
|
|
62
80
|
}
|
|
63
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Converts a core type address to a display string.
|
|
84
|
+
*/
|
|
64
85
|
export function addressToDisplayString(address) {
|
|
65
86
|
const found = Object.entries(CoreTypeAddress).find(([_, addr]) => {
|
|
66
87
|
return addr === address;
|
package/esm/dif/mod.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/dif/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
|
package/esm/dif/mod.js
ADDED
package/esm/mod.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module mod.ts
|
|
3
3
|
* @description
|
|
4
|
-
* This module exports
|
|
4
|
+
* This module exports all public APIs of the DATEX runtime.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
import { Runtime } from "./runtime/runtime.js";
|
|
6
|
+
export * from "./runtime/runtime.js";
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* @namespace DIF
|
|
9
|
+
* @description
|
|
10
|
+
* This namespace contains all modules related to the DIF (DATEX Interchange Format) interfaces of the DATEX runtime.
|
|
11
|
+
*/
|
|
12
|
+
export * as DIF from "./dif/mod.js";
|
|
13
|
+
/**
|
|
14
|
+
* @namespace Network
|
|
15
|
+
* @description
|
|
16
|
+
* This namespace contains all modules related to the network interfaces of the DATEX runtime.
|
|
10
17
|
*/
|
|
11
|
-
export
|
|
18
|
+
export * as Network from "./network/mod.js";
|
|
12
19
|
//# sourceMappingURL=mod.d.ts.map
|
package/esm/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,qBAAqB,CAAC;AAG7B,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,qBAAqB,CAAC;AAG7B,cAAc,sBAAsB,CAAC;AACrC;;;;GAIG;AACH,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC;;;;GAIG;AACH,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC"}
|
package/esm/mod.js
CHANGED
|
@@ -1,31 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module mod.ts
|
|
3
3
|
* @description
|
|
4
|
-
* This module exports
|
|
4
|
+
* This module exports all public APIs of the DATEX runtime.
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
import { Runtime } from "./runtime/runtime.js";
|
|
6
|
+
export * from "./runtime/runtime.js";
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* @namespace DIF
|
|
9
|
+
* @description
|
|
10
|
+
* This namespace contains all modules related to the DIF (DATEX Interchange Format) interfaces of the DATEX runtime.
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
interfaces: [{
|
|
13
|
-
type: "websocket-client",
|
|
14
|
-
config: { address: "wss://example.unyt.land" },
|
|
15
|
-
}],
|
|
16
|
-
debug: false, // set to true to show info/debug messages
|
|
17
|
-
};
|
|
12
|
+
export * as DIF from "./dif/mod.js";
|
|
18
13
|
/**
|
|
19
|
-
*
|
|
14
|
+
* @namespace Network
|
|
15
|
+
* @description
|
|
16
|
+
* This namespace contains all modules related to the network interfaces of the DATEX runtime.
|
|
20
17
|
*/
|
|
21
|
-
export
|
|
22
|
-
allow_unsigned_blocks: true,
|
|
23
|
-
});
|
|
24
|
-
// try {
|
|
25
|
-
// console.log(
|
|
26
|
-
// "@example responded with:",
|
|
27
|
-
// await Datex.execute("@example :: 'Hello, World!'"),
|
|
28
|
-
// );
|
|
29
|
-
// } catch (error) {
|
|
30
|
-
// console.error("Could not reach @example", error);
|
|
31
|
-
// }
|
|
18
|
+
export * as Network from "./network/mod.js";
|
package/esm/network/com-hub.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import type { JSComHub } from "../datex-core/datex_core_js";
|
|
2
2
|
import { ComInterface, type ComInterfaceImpl } from "./com-interface.js";
|
|
3
|
+
/**
|
|
4
|
+
* Communication hub for managing communication interfaces.
|
|
5
|
+
*/
|
|
3
6
|
export declare class ComHub {
|
|
4
7
|
#private;
|
|
5
8
|
constructor(jsComHub: JSComHub);
|
|
9
|
+
/**
|
|
10
|
+
* Registers a communication interface implementation.
|
|
11
|
+
* @param interfaceType The type of the interface.
|
|
12
|
+
* @param impl The implementation class of the interface.
|
|
13
|
+
*/
|
|
6
14
|
static registerInterfaceImpl<N extends string>(interfaceType: N, impl: typeof ComInterfaceImpl<unknown>): void;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new communication interface.
|
|
17
|
+
* @param interfaceType The type of the interface to create.
|
|
18
|
+
* @param setupData The setup data for the interface.
|
|
19
|
+
*/
|
|
7
20
|
createInterface<T extends typeof ComInterfaceImpl<unknown>>(interfaceType: T, setupData: T extends typeof ComInterfaceImpl<infer P> ? P : never): Promise<ComInterface<InstanceType<T>>>;
|
|
8
21
|
createInterface<T extends ComInterfaceImpl<unknown>>(interfaceType: string, setupData: T extends ComInterfaceImpl<infer P> ? P : never): Promise<ComInterface<T>>;
|
|
9
22
|
_update(): Promise<void>;
|
|
@@ -17,6 +30,23 @@ export declare class ComHub {
|
|
|
17
30
|
* @param endpoint The endpoint for which to print the trace.
|
|
18
31
|
*/
|
|
19
32
|
printTrace(endpoint: string): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Sends a block of data to a specific interface and socket.
|
|
35
|
+
* @param block The data block to send.
|
|
36
|
+
* @param interface_uuid The UUID of the interface to send the block to.
|
|
37
|
+
* @param socket_uuid The UUID of the socket to send the block to.
|
|
38
|
+
* @returns A promise that resolves to true if the block was sent successfully, false otherwise.
|
|
39
|
+
*/
|
|
20
40
|
sendBlock(block: Uint8Array, interface_uuid: string, socket_uuid: string): Promise<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* Registers a callback to intercept incoming blocks.
|
|
43
|
+
* @param callback The callback to be invoked for each incoming block.
|
|
44
|
+
*/
|
|
45
|
+
registerIncomingBlockInterceptor(callback: (block: Uint8Array, socket_uuid: string) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* Registers a callback to intercept outgoing blocks.
|
|
48
|
+
* @param callback The callback to be invoked for each outgoing block.
|
|
49
|
+
*/
|
|
50
|
+
registerOutgoingBlockInterceptor(callback: (block: Uint8Array, socket_uuid: string, endpoints: string[]) => void): void;
|
|
21
51
|
}
|
|
22
52
|
//# sourceMappingURL=com-hub.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"com-hub.d.ts","sourceRoot":"","sources":["../../src/network/com-hub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,qBAAa,MAAM;;
|
|
1
|
+
{"version":3,"file":"com-hub.d.ts","sourceRoot":"","sources":["../../src/network/com-hub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEzE;;GAEG;AACH,qBAAa,MAAM;;gBAgBH,QAAQ,EAAE,QAAQ;IAI9B;;;;OAIG;IACH,MAAM,CAAC,qBAAqB,CAAC,CAAC,SAAS,MAAM,EACzC,aAAa,EAAE,CAAC,EAChB,IAAI,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAC;IAW1C;;;;OAIG;IACG,eAAe,CAAC,CAAC,SAAS,OAAO,gBAAgB,CAAC,OAAO,CAAC,EAC5D,aAAa,EAAE,CAAC,EAChB,SAAS,EAAE,CAAC,SAAS,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,GAClE,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,eAAe,CACjB,CAAC,SAAS,gBAAgB,CAAC,OAAO,CAAC,EAEnC,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,CAAC,SAAS,gBAAgB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,GAC3D,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAkCpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,sBAAsB,IAAI,UAAU,CAAC,eAAe,CAAC,EAAE;IAI9D;;OAEG;IACI,aAAa,IAAI,IAAI;IAO5B;;;OAGG;IACU,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWxD;;;;;;OAMG;IACI,SAAS,CACZ,KAAK,EAAE,UAAU,EACjB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,OAAO,CAAC;IAInB;;;OAGG;IACI,gCAAgC,CACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,GAC3D,IAAI;IAIP;;;OAGG;IACI,gCAAgC,CACnC,QAAQ,EAAE,CACN,KAAK,EAAE,UAAU,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EAAE,KAClB,IAAI,GACV,IAAI;CAGV"}
|
package/esm/network/com-hub.js
CHANGED
|
@@ -11,11 +11,20 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
11
11
|
};
|
|
12
12
|
var _a, _ComHub_interfaceImpls, _ComHub_interfaceImplsByClass, _ComHub_jsComHub;
|
|
13
13
|
import { ComInterface } from "./com-interface.js";
|
|
14
|
+
/**
|
|
15
|
+
* Communication hub for managing communication interfaces.
|
|
16
|
+
*/
|
|
14
17
|
export class ComHub {
|
|
15
18
|
constructor(jsComHub) {
|
|
19
|
+
/** The JS communication hub. */
|
|
16
20
|
_ComHub_jsComHub.set(this, void 0);
|
|
17
21
|
__classPrivateFieldSet(this, _ComHub_jsComHub, jsComHub, "f");
|
|
18
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Registers a communication interface implementation.
|
|
25
|
+
* @param interfaceType The type of the interface.
|
|
26
|
+
* @param impl The implementation class of the interface.
|
|
27
|
+
*/
|
|
19
28
|
static registerInterfaceImpl(interfaceType, impl) {
|
|
20
29
|
if (__classPrivateFieldGet(this, _a, "f", _ComHub_interfaceImpls).has(interfaceType)) {
|
|
21
30
|
throw new Error(`Interface implementation for ${interfaceType} already registered.`);
|
|
@@ -68,10 +77,33 @@ export class ComHub {
|
|
|
68
77
|
}
|
|
69
78
|
console.log(trace);
|
|
70
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Sends a block of data to a specific interface and socket.
|
|
82
|
+
* @param block The data block to send.
|
|
83
|
+
* @param interface_uuid The UUID of the interface to send the block to.
|
|
84
|
+
* @param socket_uuid The UUID of the socket to send the block to.
|
|
85
|
+
* @returns A promise that resolves to true if the block was sent successfully, false otherwise.
|
|
86
|
+
*/
|
|
71
87
|
sendBlock(block, interface_uuid, socket_uuid) {
|
|
72
88
|
return __classPrivateFieldGet(this, _ComHub_jsComHub, "f").send_block(block, interface_uuid, socket_uuid);
|
|
73
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Registers a callback to intercept incoming blocks.
|
|
92
|
+
* @param callback The callback to be invoked for each incoming block.
|
|
93
|
+
*/
|
|
94
|
+
registerIncomingBlockInterceptor(callback) {
|
|
95
|
+
__classPrivateFieldGet(this, _ComHub_jsComHub, "f").register_incoming_block_interceptor(callback);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Registers a callback to intercept outgoing blocks.
|
|
99
|
+
* @param callback The callback to be invoked for each outgoing block.
|
|
100
|
+
*/
|
|
101
|
+
registerOutgoingBlockInterceptor(callback) {
|
|
102
|
+
__classPrivateFieldGet(this, _ComHub_jsComHub, "f").register_outgoing_block_interceptor(callback);
|
|
103
|
+
}
|
|
74
104
|
}
|
|
75
105
|
_a = ComHub, _ComHub_jsComHub = new WeakMap();
|
|
106
|
+
/** Static map of registered interface implementations. */
|
|
76
107
|
_ComHub_interfaceImpls = { value: new Map() };
|
|
108
|
+
/** Static map of interface implementations by class. */
|
|
77
109
|
_ComHub_interfaceImplsByClass = { value: new Map() };
|
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
import type { JSComHub } from "../datex-core/datex_core_js";
|
|
2
|
+
/**
|
|
3
|
+
* Abstract base class for communication interface implementations.
|
|
4
|
+
*/
|
|
2
5
|
export declare abstract class ComInterfaceImpl<SetupData> {
|
|
3
6
|
protected readonly uuid: string;
|
|
4
7
|
protected readonly setupData: SetupData;
|
|
5
8
|
protected readonly jsComHub: JSComHub;
|
|
6
9
|
constructor(uuid: string, setupData: SetupData, jsComHub: JSComHub);
|
|
10
|
+
/**
|
|
11
|
+
* Initializes the communication interface.
|
|
12
|
+
*/
|
|
7
13
|
init?(): Promise<void> | void;
|
|
14
|
+
/**
|
|
15
|
+
* Cleans up the communication interface.
|
|
16
|
+
*/
|
|
8
17
|
cleanup?(): Promise<void> | void;
|
|
9
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents a communication interface.
|
|
21
|
+
*/
|
|
10
22
|
export declare class ComInterface<T extends ComInterfaceImpl<unknown>> {
|
|
11
23
|
#private;
|
|
24
|
+
/** The UUID of the interface. */
|
|
12
25
|
readonly uuid: string;
|
|
26
|
+
/** The implementation of the interface. */
|
|
13
27
|
readonly impl: T;
|
|
14
28
|
constructor(uuid: string, impl: T, jsComHub: JSComHub);
|
|
29
|
+
/**
|
|
30
|
+
* Closes the communication interface.
|
|
31
|
+
* @returns True if the interface was closed successfully, false otherwise.
|
|
32
|
+
*/
|
|
15
33
|
close(): Promise<boolean>;
|
|
16
34
|
}
|
|
17
35
|
//# sourceMappingURL=com-interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"com-interface.d.ts","sourceRoot":"","sources":["../../src/network/com-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE5D,8BAAsB,gBAAgB,CAAC,SAAS;IAC5C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAC;IACjC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAC;IACzC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAG,QAAQ,CAAC;gBAE3B,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"com-interface.d.ts","sourceRoot":"","sources":["../../src/network/com-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,8BAAsB,gBAAgB,CAAC,SAAS;IAC5C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAC;IACjC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAC;IACzC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAG,QAAQ,CAAC;gBAE3B,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ;IAKlE;;OAEG;IACH,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAC7B;;OAEG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;CACnC;AAED;;GAEG;AACH,qBAAa,YAAY,CAAC,CAAC,SAAS,gBAAgB,CAAC,OAAO,CAAC;;IACzD,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;gBAKL,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ;IAMrD;;;OAGG;IACU,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;CAIzC"}
|
|
@@ -10,6 +10,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _ComInterface_jsComHub;
|
|
13
|
+
/**
|
|
14
|
+
* Abstract base class for communication interface implementations.
|
|
15
|
+
*/
|
|
13
16
|
export class ComInterfaceImpl {
|
|
14
17
|
constructor(uuid, setupData, jsComHub) {
|
|
15
18
|
Object.defineProperty(this, "uuid", {
|
|
@@ -35,25 +38,35 @@ export class ComInterfaceImpl {
|
|
|
35
38
|
this.jsComHub = jsComHub;
|
|
36
39
|
}
|
|
37
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Represents a communication interface.
|
|
43
|
+
*/
|
|
38
44
|
export class ComInterface {
|
|
39
45
|
constructor(uuid, impl, jsComHub) {
|
|
46
|
+
/** The UUID of the interface. */
|
|
40
47
|
Object.defineProperty(this, "uuid", {
|
|
41
48
|
enumerable: true,
|
|
42
49
|
configurable: true,
|
|
43
50
|
writable: true,
|
|
44
51
|
value: void 0
|
|
45
52
|
});
|
|
53
|
+
/** The implementation of the interface. */
|
|
46
54
|
Object.defineProperty(this, "impl", {
|
|
47
55
|
enumerable: true,
|
|
48
56
|
configurable: true,
|
|
49
57
|
writable: true,
|
|
50
58
|
value: void 0
|
|
51
59
|
});
|
|
60
|
+
/** The JS communication hub. */
|
|
52
61
|
_ComInterface_jsComHub.set(this, void 0);
|
|
53
62
|
this.uuid = uuid;
|
|
54
63
|
this.impl = impl;
|
|
55
64
|
__classPrivateFieldSet(this, _ComInterface_jsComHub, jsComHub, "f");
|
|
56
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Closes the communication interface.
|
|
68
|
+
* @returns True if the interface was closed successfully, false otherwise.
|
|
69
|
+
*/
|
|
57
70
|
async close() {
|
|
58
71
|
await this.impl.cleanup?.();
|
|
59
72
|
return __classPrivateFieldGet(this, _ComInterface_jsComHub, "f").close_interface(this.uuid);
|
|
@@ -1,11 +1,38 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
1
|
import { ComInterfaceImpl } from "../com-interface.js";
|
|
3
2
|
import type { BaseInterfaceSetupData, InterfaceDirection } from "../../datex-core/datex_core_js";
|
|
3
|
+
export type { BaseInterfaceSetupData, InterfaceDirection };
|
|
4
|
+
/**
|
|
5
|
+
* Implementation of the base communication interface.
|
|
6
|
+
*/
|
|
4
7
|
export declare class BaseInterfaceImpl extends ComInterfaceImpl<BaseInterfaceSetupData> {
|
|
8
|
+
/**
|
|
9
|
+
* Registers a socket for the communication interface.
|
|
10
|
+
* @param interfaceDirection The direction of the interface (incoming/outgoing).
|
|
11
|
+
* @returns The UUID of the registered socket.
|
|
12
|
+
*/
|
|
5
13
|
registerSocket(interfaceDirection: InterfaceDirection): string;
|
|
14
|
+
/**
|
|
15
|
+
* Destroys a socket for the communication interface.
|
|
16
|
+
* @param socketUUID The UUID of the socket to destroy.
|
|
17
|
+
*/
|
|
6
18
|
destroySocket(socketUUID: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* Receives a data block for the communication interface.
|
|
21
|
+
* @param socketUUID The UUID of the socket to receive data on.
|
|
22
|
+
* @param data The data block to receive.
|
|
23
|
+
*/
|
|
7
24
|
receive(socketUUID: string, data: Uint8Array): void;
|
|
25
|
+
/**
|
|
26
|
+
* Tests sending a data block for the communication interface.
|
|
27
|
+
* @param socketUUID The UUID of the socket to send data on.
|
|
28
|
+
* @param data The data block to send.
|
|
29
|
+
* @returns A promise that resolves to true if the block was sent successfully, false otherwise.
|
|
30
|
+
*/
|
|
8
31
|
testSendBlock(socketUUID: string, data: Uint8Array): Promise<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Registers a callback to handle sending data blocks.
|
|
34
|
+
* @param callback The callback to be invoked when sending data.
|
|
35
|
+
*/
|
|
9
36
|
onSend(callback: (data: Uint8Array, receiver_socket_uuid: string) => Promise<boolean>): void;
|
|
10
37
|
}
|
|
11
38
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/network/interface-impls/base.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EACR,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/network/interface-impls/base.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EACR,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,CAAC;AAE3D;;GAEG;AACH,qBAAa,iBACT,SAAQ,gBAAgB,CAAC,sBAAsB,CAAC;IAChD;;;;OAIG;IACI,cAAc,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,MAAM;IAOrE;;;OAGG;IACI,aAAa,CAAC,UAAU,EAAE,MAAM;IAOvC;;;;OAIG;IACI,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAQnD;;;;;OAKG;IACI,aAAa,CAChB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,UAAU,GACjB,OAAO,CAAC,OAAO,CAAC;IAQnB;;;OAGG;IACI,MAAM,CACT,QAAQ,EAAE,CACN,IAAI,EAAE,UAAU,EAChB,oBAAoB,EAAE,MAAM,KAC3B,OAAO,CAAC,OAAO,CAAC;CAI5B"}
|
|
@@ -1,21 +1,47 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
1
|
import { ComInterfaceImpl } from "../com-interface.js";
|
|
3
2
|
import { ComHub } from "../com-hub.js";
|
|
3
|
+
/**
|
|
4
|
+
* Implementation of the base communication interface.
|
|
5
|
+
*/
|
|
4
6
|
export class BaseInterfaceImpl extends ComInterfaceImpl {
|
|
7
|
+
/**
|
|
8
|
+
* Registers a socket for the communication interface.
|
|
9
|
+
* @param interfaceDirection The direction of the interface (incoming/outgoing).
|
|
10
|
+
* @returns The UUID of the registered socket.
|
|
11
|
+
*/
|
|
5
12
|
registerSocket(interfaceDirection) {
|
|
6
13
|
return this.jsComHub.base_interface_register_socket(this.uuid, interfaceDirection);
|
|
7
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Destroys a socket for the communication interface.
|
|
17
|
+
* @param socketUUID The UUID of the socket to destroy.
|
|
18
|
+
*/
|
|
8
19
|
destroySocket(socketUUID) {
|
|
9
|
-
|
|
20
|
+
this.jsComHub.base_interface_destroy_socket(this.uuid, socketUUID);
|
|
10
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Receives a data block for the communication interface.
|
|
24
|
+
* @param socketUUID The UUID of the socket to receive data on.
|
|
25
|
+
* @param data The data block to receive.
|
|
26
|
+
*/
|
|
11
27
|
receive(socketUUID, data) {
|
|
12
|
-
|
|
28
|
+
this.jsComHub.base_interface_receive(this.uuid, socketUUID, data);
|
|
13
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Tests sending a data block for the communication interface.
|
|
32
|
+
* @param socketUUID The UUID of the socket to send data on.
|
|
33
|
+
* @param data The data block to send.
|
|
34
|
+
* @returns A promise that resolves to true if the block was sent successfully, false otherwise.
|
|
35
|
+
*/
|
|
14
36
|
testSendBlock(socketUUID, data) {
|
|
15
37
|
return this.jsComHub.base_interface_test_send_block(this.uuid, socketUUID, data);
|
|
16
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Registers a callback to handle sending data blocks.
|
|
41
|
+
* @param callback The callback to be invoked when sending data.
|
|
42
|
+
*/
|
|
17
43
|
onSend(callback) {
|
|
18
|
-
|
|
44
|
+
this.jsComHub.base_interface_on_send(this.uuid, callback);
|
|
19
45
|
}
|
|
20
46
|
}
|
|
21
47
|
ComHub.registerInterfaceImpl("base", BaseInterfaceImpl);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
1
|
import { ComInterfaceImpl } from "../com-interface.js";
|
|
3
2
|
import type { WebSocketClientInterfaceSetupData } from "../../datex-core/datex_core_js";
|
|
3
|
+
/**
|
|
4
|
+
* Implementation of the WebSocket client communication interface.
|
|
5
|
+
*/
|
|
4
6
|
export declare class WebSocketClientInterfaceImpl extends ComInterfaceImpl<WebSocketClientInterfaceSetupData> {
|
|
5
7
|
}
|
|
6
8
|
//# sourceMappingURL=websocket-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-client.d.ts","sourceRoot":"","sources":["../../../src/network/interface-impls/websocket-client.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAGxF,qBAAa,4BACT,SAAQ,gBAAgB,CAAC,iCAAiC,CAAC;CAC9D"}
|
|
1
|
+
{"version":3,"file":"websocket-client.d.ts","sourceRoot":"","sources":["../../../src/network/interface-impls/websocket-client.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAGxF;;GAEG;AACH,qBAAa,4BACT,SAAQ,gBAAgB,CAAC,iCAAiC,CAAC;CAC9D"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import "../../_dnt.polyfills.js";
|
|
2
1
|
import { ComInterfaceImpl } from "../com-interface.js";
|
|
3
2
|
import { ComHub } from "../com-hub.js";
|
|
3
|
+
/**
|
|
4
|
+
* Implementation of the WebSocket client communication interface.
|
|
5
|
+
*/
|
|
4
6
|
export class WebSocketClientInterfaceImpl extends ComInterfaceImpl {
|
|
5
7
|
}
|
|
6
8
|
ComHub.registerInterfaceImpl("websocket-client", WebSocketClientInterfaceImpl);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module network/mod.ts
|
|
3
|
+
* @description
|
|
4
|
+
* This module re-exports all network-related functionalities, including
|
|
5
|
+
* communication hubs and interfaces.
|
|
6
|
+
*/
|
|
7
|
+
export * from "./com-hub.js";
|
|
8
|
+
export * from "./com-interface.js";
|
|
9
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/network/mod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
package/esm/refs/ref.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import type { DIFHandler } from "../dif/dif-handler.js";
|
|
|
6
6
|
export declare class Ref<T> {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(value: T, pointerAddress: string, difHandler: DIFHandler);
|
|
9
|
+
/**
|
|
10
|
+
* Gets the address of the pointer storing the reference.
|
|
11
|
+
*/
|
|
9
12
|
get pointerAddress(): string;
|
|
10
13
|
/**
|
|
11
14
|
* Silently updates the value of the reference without notifying observers.
|
package/esm/refs/ref.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../src/refs/ref.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;GAGG;AACH,qBAAa,GAAG,CAAC,CAAC;;gBAKF,KAAK,EAAE,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU;IAMpE,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;;OAIG;IACH,mBAAmB,CAAC,QAAQ,EAAE,CAAC;IAI/B;;OAEG;IACH,IAAI,KAAK,IAAI,CAAC,CAEb;IAED;;;;OAIG;IACH,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,EAUpB;CACJ"}
|
|
1
|
+
{"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../src/refs/ref.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;GAGG;AACH,qBAAa,GAAG,CAAC,CAAC;;gBAKF,KAAK,EAAE,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU;IAMpE;;OAEG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;;OAIG;IACH,mBAAmB,CAAC,QAAQ,EAAE,CAAC;IAI/B;;OAEG;IACH,IAAI,KAAK,IAAI,CAAC,CAEb;IAED;;;;OAIG;IACH,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,EAUpB;CACJ"}
|
package/esm/refs/ref.js
CHANGED
|
@@ -24,6 +24,9 @@ export class Ref {
|
|
|
24
24
|
__classPrivateFieldSet(this, _Ref_pointerAddress, pointerAddress, "f");
|
|
25
25
|
__classPrivateFieldSet(this, _Ref_difHandler, difHandler, "f");
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Gets the address of the pointer storing the reference.
|
|
29
|
+
*/
|
|
27
30
|
get pointerAddress() {
|
|
28
31
|
return __classPrivateFieldGet(this, _Ref_pointerAddress, "f");
|
|
29
32
|
}
|