mediasoup 3.20.6 → 3.20.8
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/node/lib/fbs/data-consumer/binary.d.ts +25 -0
- package/node/lib/fbs/data-consumer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/binary.js +110 -0
- package/node/lib/fbs/data-consumer/data.d.ts +10 -0
- package/node/lib/fbs/data-consumer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/data.js +30 -0
- package/node/lib/fbs/data-consumer/string.d.ts +22 -0
- package/node/lib/fbs/data-consumer/string.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-notification.js → data-consumer/string.js} +34 -20
- package/node/lib/fbs/data-producer/binary.d.ts +25 -0
- package/node/lib/fbs/data-producer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/binary.js +110 -0
- package/node/lib/fbs/data-producer/data.d.ts +10 -0
- package/node/lib/fbs/data-producer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/data.js +30 -0
- package/node/lib/fbs/data-producer/string.d.ts +22 -0
- package/node/lib/fbs/data-producer/string.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/string.js +92 -0
- package/node/lib/fbs/message/type.d.ts +7 -0
- package/node/lib/fbs/message/type.d.ts.map +1 -0
- package/node/lib/fbs/message/type.js +11 -0
- package/node/lib/fbs/message-from-worker/body.d.ts +12 -0
- package/node/lib/fbs/message-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/body.js +34 -0
- package/node/lib/fbs/message-from-worker/message.d.ts +30 -0
- package/node/lib/fbs/message-from-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/message.js +122 -0
- package/node/lib/fbs/message-from-worker.d.ts +3 -0
- package/node/lib/fbs/message-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker.js +9 -0
- package/node/lib/fbs/message-to-worker/body.d.ts +10 -0
- package/node/lib/fbs/message-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/body.js +30 -0
- package/node/lib/fbs/message-to-worker/message.d.ts +29 -0
- package/node/lib/fbs/message-to-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/message.js +122 -0
- package/node/lib/fbs/message-to-worker.d.ts +3 -0
- package/node/lib/fbs/message-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker.js +9 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts +44 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/body.js +98 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts +31 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/event.js +35 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts +52 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/notification.js +140 -0
- package/node/lib/fbs/notification-from-worker.d.ts +4 -0
- package/node/lib/fbs/notification-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker.js +11 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts +12 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/body.js +34 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts +6 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/event.js +10 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts +36 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/notification.js +140 -0
- package/node/lib/fbs/notification-to-worker.d.ts +4 -0
- package/node/lib/fbs/notification-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker.js +11 -0
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +5 -5
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-request.js → trace-events/fir-trace-info.js} +32 -20
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.js +104 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-worker-notification.js → trace-events/pli-trace-info.js} +32 -20
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{consumer/enable-delay-and-loss-request.js → trace-events/rtp-trace-info.js} +35 -33
- package/node/lib/fbs/trace-events/trace-event-type.d.ts +8 -0
- package/node/lib/fbs/trace-events/trace-event-type.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-event-type.js +12 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts +14 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-info.js +38 -0
- package/node/lib/fbs/trace-events.d.ts +7 -0
- package/node/lib/fbs/trace-events.d.ts.map +1 -0
- package/node/lib/fbs/trace-events.js +20 -0
- package/npm-scripts.mjs +13 -8
- package/package.json +6 -6
- package/worker/fbs/meson.build +0 -1
- package/worker/fbs/plainTransport.fbs +1 -1
- package/worker/fbs/worker.fbs +0 -2
- package/worker/include/RTC/ICE/StunPacket.hpp +8 -9
- package/worker/include/RTC/RTP/Packet.hpp +1 -1
- package/worker/include/RTC/RTP/ProbationGenerator.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/Chunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/ErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/Packet.hpp +1 -2
- package/worker/include/RTC/SCTP/packet/Parameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/TLV.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/DataChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/ForwardTsnChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/IDataChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/IForwardTsnChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/InitAckChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/InitChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/SackChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/CookiePreservativeParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/IPv4AddressParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/IPv6AddressParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.hpp +1 -1
- package/worker/include/Settings.hpp +0 -1
- package/worker/include/handles/TcpConnectionHandle.hpp +0 -4
- package/worker/include/handles/UdpSocketHandle.hpp +0 -4
- package/worker/meson.build +0 -34
- package/worker/meson_options.txt +0 -1
- package/worker/src/RTC/PipeTransport.cpp +5 -5
- package/worker/src/RTC/PlainTransport.cpp +5 -5
- package/worker/src/RTC/RTP/Packet.cpp +0 -2
- package/worker/src/RTC/RTP/RtpStreamSend.cpp +0 -20
- package/worker/src/RTC/Router.cpp +0 -37
- package/worker/src/RTC/SCTP/association/Association.cpp +12 -7
- package/worker/src/RTC/SimpleProducerStreamManager.cpp +6 -3
- package/worker/src/RTC/SimulcastProducerStreamManager.cpp +2 -2
- package/worker/src/RTC/SrtpSession.cpp +0 -24
- package/worker/src/RTC/Transport.cpp +3 -22
- package/worker/src/RTC/WebRtcTransport.cpp +5 -5
- package/worker/src/Settings.cpp +0 -14
- package/worker/src/Utils/Crypto.cpp +3 -3
- package/worker/src/Utils/String.cpp +1 -1
- package/worker/src/Worker.cpp +5 -38
- package/worker/src/handles/TcpConnectionHandle.cpp +1 -42
- package/worker/src/handles/UdpSocketHandle.cpp +1 -42
- package/worker/src/lib.cpp +1 -10
- package/node/lib/fbs/consumer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/consumer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/consumer/degrade-request.js +0 -124
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +0 -24
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/producer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.js +0 -124
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.js +0 -102
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.js +0 -102
- package/node/lib/fbs/worker/close-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-notification.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-request.d.ts +0 -18
- package/node/lib/fbs/worker/close-request.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-worker-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-worker-notification.d.ts.map +0 -1
- package/worker/fbs/liburing.fbs +0 -7
- package/worker/include/DepLibUring.hpp +0 -143
- package/worker/src/DepLibUring.cpp +0 -638
- package/worker/subprojects/liburing.wrap +0 -14
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class Binary implements flatbuffers.IUnpackableObject<BinaryT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): Binary;
|
|
6
|
+
static getRootAsBinary(bb: flatbuffers.ByteBuffer, obj?: Binary): Binary;
|
|
7
|
+
static getSizePrefixedRootAsBinary(bb: flatbuffers.ByteBuffer, obj?: Binary): Binary;
|
|
8
|
+
value(index: number): number | null;
|
|
9
|
+
valueLength(): number;
|
|
10
|
+
valueArray(): Uint8Array | null;
|
|
11
|
+
static startBinary(builder: flatbuffers.Builder): void;
|
|
12
|
+
static addValue(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): void;
|
|
13
|
+
static createValueVector(builder: flatbuffers.Builder, data: number[] | Uint8Array): flatbuffers.Offset;
|
|
14
|
+
static startValueVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
15
|
+
static endBinary(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
16
|
+
static createBinary(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
17
|
+
unpack(): BinaryT;
|
|
18
|
+
unpackTo(_o: BinaryT): void;
|
|
19
|
+
}
|
|
20
|
+
export declare class BinaryT implements flatbuffers.IGeneratedObject {
|
|
21
|
+
value: (number)[];
|
|
22
|
+
constructor(value?: (number)[]);
|
|
23
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=binary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../src/fbs/data-consumer/binary.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,MAAO,YAAW,WAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC;IACnE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,MAAM;IAMpD,MAAM,CAAC,eAAe,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAIrE,MAAM,CAAC,2BAA2B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAKjF,KAAK,CAAC,KAAK,EAAE,MAAM,GAAE,MAAM,GAAC,IAAI;IAKhC,WAAW,IAAG,MAAM;IAKpB,UAAU,IAAG,UAAU,GAAC,IAAI;IAK5B,MAAM,CAAC,WAAW,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAI9C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM;IAI3E,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,IAAI,EAAC,MAAM,EAAE,GAAC,UAAU,GAAE,WAAW,CAAC,MAAM;IAQlG,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAC,MAAM;IAIpE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAMhE,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAMnG,MAAM,IAAI,OAAO;IAOjB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;CAG1B;AAED,qBAAa,OAAQ,YAAW,WAAW,CAAC,gBAAgB;IAEnD,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE;gBAAjB,KAAK,GAAE,CAAC,MAAM,CAAC,EAAO;IAI/B,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAOpD"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.BinaryT = exports.Binary = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
class Binary {
|
|
40
|
+
bb = null;
|
|
41
|
+
bb_pos = 0;
|
|
42
|
+
__init(i, bb) {
|
|
43
|
+
this.bb_pos = i;
|
|
44
|
+
this.bb = bb;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
static getRootAsBinary(bb, obj) {
|
|
48
|
+
return (obj || new Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
49
|
+
}
|
|
50
|
+
static getSizePrefixedRootAsBinary(bb, obj) {
|
|
51
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
52
|
+
return (obj || new Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
53
|
+
}
|
|
54
|
+
value(index) {
|
|
55
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
56
|
+
return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
|
|
57
|
+
}
|
|
58
|
+
valueLength() {
|
|
59
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
60
|
+
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
61
|
+
}
|
|
62
|
+
valueArray() {
|
|
63
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
64
|
+
return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
|
|
65
|
+
}
|
|
66
|
+
static startBinary(builder) {
|
|
67
|
+
builder.startObject(1);
|
|
68
|
+
}
|
|
69
|
+
static addValue(builder, valueOffset) {
|
|
70
|
+
builder.addFieldOffset(0, valueOffset, 0);
|
|
71
|
+
}
|
|
72
|
+
static createValueVector(builder, data) {
|
|
73
|
+
builder.startVector(1, data.length, 1);
|
|
74
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
75
|
+
builder.addInt8(data[i]);
|
|
76
|
+
}
|
|
77
|
+
return builder.endVector();
|
|
78
|
+
}
|
|
79
|
+
static startValueVector(builder, numElems) {
|
|
80
|
+
builder.startVector(1, numElems, 1);
|
|
81
|
+
}
|
|
82
|
+
static endBinary(builder) {
|
|
83
|
+
const offset = builder.endObject();
|
|
84
|
+
builder.requiredField(offset, 4); // value
|
|
85
|
+
return offset;
|
|
86
|
+
}
|
|
87
|
+
static createBinary(builder, valueOffset) {
|
|
88
|
+
Binary.startBinary(builder);
|
|
89
|
+
Binary.addValue(builder, valueOffset);
|
|
90
|
+
return Binary.endBinary(builder);
|
|
91
|
+
}
|
|
92
|
+
unpack() {
|
|
93
|
+
return new BinaryT(this.bb.createScalarList(this.value.bind(this), this.valueLength()));
|
|
94
|
+
}
|
|
95
|
+
unpackTo(_o) {
|
|
96
|
+
_o.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.Binary = Binary;
|
|
100
|
+
class BinaryT {
|
|
101
|
+
value;
|
|
102
|
+
constructor(value = []) {
|
|
103
|
+
this.value = value;
|
|
104
|
+
}
|
|
105
|
+
pack(builder) {
|
|
106
|
+
const value = Binary.createValueVector(builder, this.value);
|
|
107
|
+
return Binary.createBinary(builder, value);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.BinaryT = BinaryT;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Binary } from '../../fbs/data-consumer/binary';
|
|
2
|
+
import { String } from '../../fbs/data-consumer/string';
|
|
3
|
+
export declare enum Data {
|
|
4
|
+
NONE = 0,
|
|
5
|
+
String = 1,
|
|
6
|
+
Binary = 2
|
|
7
|
+
}
|
|
8
|
+
export declare function unionToData(type: Data, accessor: (obj: Binary | String) => Binary | String | null): Binary | String | null;
|
|
9
|
+
export declare function unionListToData(type: Data, accessor: (index: number, obj: Binary | String) => Binary | String | null, index: number): Binary | String | null;
|
|
10
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/fbs/data-consumer/data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAW,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAW,MAAM,gCAAgC,CAAC;AAGjE,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,MAAM,IAAI;IACV,MAAM,IAAI;CACX;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,MAAM,GAAC,MAAM,KAAK,MAAM,GAAC,MAAM,GAAC,IAAI,GAClD,MAAM,GAAC,MAAM,GAAC,IAAI,CAOpB;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,MAAM,GAAC,MAAM,KAAK,MAAM,GAAC,MAAM,GAAC,IAAI,EAClE,KAAK,EAAE,MAAM,GACZ,MAAM,GAAC,MAAM,GAAC,IAAI,CAOpB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Data = void 0;
|
|
5
|
+
exports.unionToData = unionToData;
|
|
6
|
+
exports.unionListToData = unionListToData;
|
|
7
|
+
const binary_1 = require("../../fbs/data-consumer/binary");
|
|
8
|
+
const string_1 = require("../../fbs/data-consumer/string");
|
|
9
|
+
var Data;
|
|
10
|
+
(function (Data) {
|
|
11
|
+
Data[Data["NONE"] = 0] = "NONE";
|
|
12
|
+
Data[Data["String"] = 1] = "String";
|
|
13
|
+
Data[Data["Binary"] = 2] = "Binary";
|
|
14
|
+
})(Data || (exports.Data = Data = {}));
|
|
15
|
+
function unionToData(type, accessor) {
|
|
16
|
+
switch (Data[type]) {
|
|
17
|
+
case 'NONE': return null;
|
|
18
|
+
case 'String': return accessor(new string_1.String());
|
|
19
|
+
case 'Binary': return accessor(new binary_1.Binary());
|
|
20
|
+
default: return null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function unionListToData(type, accessor, index) {
|
|
24
|
+
switch (Data[type]) {
|
|
25
|
+
case 'NONE': return null;
|
|
26
|
+
case 'String': return accessor(index, new string_1.String());
|
|
27
|
+
case 'Binary': return accessor(index, new binary_1.Binary());
|
|
28
|
+
default: return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class String implements flatbuffers.IUnpackableObject<StringT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): String;
|
|
6
|
+
static getRootAsString(bb: flatbuffers.ByteBuffer, obj?: String): String;
|
|
7
|
+
static getSizePrefixedRootAsString(bb: flatbuffers.ByteBuffer, obj?: String): String;
|
|
8
|
+
value(): string | null;
|
|
9
|
+
value(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
10
|
+
static startString(builder: flatbuffers.Builder): void;
|
|
11
|
+
static addValue(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): void;
|
|
12
|
+
static endString(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
13
|
+
static createString(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
14
|
+
unpack(): StringT;
|
|
15
|
+
unpackTo(_o: StringT): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class StringT implements flatbuffers.IGeneratedObject {
|
|
18
|
+
value: string | Uint8Array | null;
|
|
19
|
+
constructor(value?: string | Uint8Array | null);
|
|
20
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../src/fbs/data-consumer/string.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,MAAO,YAAW,WAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC;IACnE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,MAAM;IAMpD,MAAM,CAAC,eAAe,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAIrE,MAAM,CAAC,2BAA2B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAKjF,KAAK,IAAG,MAAM,GAAC,IAAI;IACnB,KAAK,CAAC,gBAAgB,EAAC,WAAW,CAAC,QAAQ,GAAE,MAAM,GAAC,UAAU,GAAC,IAAI;IAMnE,MAAM,CAAC,WAAW,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAI9C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM;IAI3E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAMhE,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAMnG,MAAM,IAAI,OAAO;IAOjB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;CAG1B;AAED,qBAAa,OAAQ,YAAW,WAAW,CAAC,gBAAgB;IAEnD,KAAK,EAAE,MAAM,GAAC,UAAU,GAAC,IAAI;gBAA7B,KAAK,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW;IAI7C,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAOpD"}
|
|
@@ -34,10 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
38
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
37
|
+
exports.StringT = exports.String = void 0;
|
|
39
38
|
const flatbuffers = __importStar(require("flatbuffers"));
|
|
40
|
-
class
|
|
39
|
+
class String {
|
|
41
40
|
bb = null;
|
|
42
41
|
bb_pos = 0;
|
|
43
42
|
__init(i, bb) {
|
|
@@ -45,34 +44,49 @@ class CloseNotification {
|
|
|
45
44
|
this.bb = bb;
|
|
46
45
|
return this;
|
|
47
46
|
}
|
|
48
|
-
static
|
|
49
|
-
return (obj || new
|
|
47
|
+
static getRootAsString(bb, obj) {
|
|
48
|
+
return (obj || new String()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
49
|
}
|
|
51
|
-
static
|
|
50
|
+
static getSizePrefixedRootAsString(bb, obj) {
|
|
52
51
|
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
-
return (obj || new
|
|
52
|
+
return (obj || new String()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
value(optionalEncoding) {
|
|
55
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
56
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
57
57
|
}
|
|
58
|
-
static
|
|
58
|
+
static startString(builder) {
|
|
59
|
+
builder.startObject(1);
|
|
60
|
+
}
|
|
61
|
+
static addValue(builder, valueOffset) {
|
|
62
|
+
builder.addFieldOffset(0, valueOffset, 0);
|
|
63
|
+
}
|
|
64
|
+
static endString(builder) {
|
|
59
65
|
const offset = builder.endObject();
|
|
66
|
+
builder.requiredField(offset, 4); // value
|
|
60
67
|
return offset;
|
|
61
68
|
}
|
|
62
|
-
static
|
|
63
|
-
|
|
64
|
-
|
|
69
|
+
static createString(builder, valueOffset) {
|
|
70
|
+
String.startString(builder);
|
|
71
|
+
String.addValue(builder, valueOffset);
|
|
72
|
+
return String.endString(builder);
|
|
65
73
|
}
|
|
66
74
|
unpack() {
|
|
67
|
-
return new
|
|
75
|
+
return new StringT(this.value());
|
|
76
|
+
}
|
|
77
|
+
unpackTo(_o) {
|
|
78
|
+
_o.value = this.value();
|
|
68
79
|
}
|
|
69
|
-
unpackTo(_o) { }
|
|
70
80
|
}
|
|
71
|
-
exports.
|
|
72
|
-
class
|
|
73
|
-
|
|
81
|
+
exports.String = String;
|
|
82
|
+
class StringT {
|
|
83
|
+
value;
|
|
84
|
+
constructor(value = null) {
|
|
85
|
+
this.value = value;
|
|
86
|
+
}
|
|
74
87
|
pack(builder) {
|
|
75
|
-
|
|
88
|
+
const value = (this.value !== null ? builder.createString(this.value) : 0);
|
|
89
|
+
return String.createString(builder, value);
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
|
-
exports.
|
|
92
|
+
exports.StringT = StringT;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class Binary implements flatbuffers.IUnpackableObject<BinaryT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): Binary;
|
|
6
|
+
static getRootAsBinary(bb: flatbuffers.ByteBuffer, obj?: Binary): Binary;
|
|
7
|
+
static getSizePrefixedRootAsBinary(bb: flatbuffers.ByteBuffer, obj?: Binary): Binary;
|
|
8
|
+
value(index: number): number | null;
|
|
9
|
+
valueLength(): number;
|
|
10
|
+
valueArray(): Uint8Array | null;
|
|
11
|
+
static startBinary(builder: flatbuffers.Builder): void;
|
|
12
|
+
static addValue(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): void;
|
|
13
|
+
static createValueVector(builder: flatbuffers.Builder, data: number[] | Uint8Array): flatbuffers.Offset;
|
|
14
|
+
static startValueVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
15
|
+
static endBinary(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
16
|
+
static createBinary(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
17
|
+
unpack(): BinaryT;
|
|
18
|
+
unpackTo(_o: BinaryT): void;
|
|
19
|
+
}
|
|
20
|
+
export declare class BinaryT implements flatbuffers.IGeneratedObject {
|
|
21
|
+
value: (number)[];
|
|
22
|
+
constructor(value?: (number)[]);
|
|
23
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=binary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../src/fbs/data-producer/binary.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,MAAO,YAAW,WAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC;IACnE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,MAAM;IAMpD,MAAM,CAAC,eAAe,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAIrE,MAAM,CAAC,2BAA2B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAKjF,KAAK,CAAC,KAAK,EAAE,MAAM,GAAE,MAAM,GAAC,IAAI;IAKhC,WAAW,IAAG,MAAM;IAKpB,UAAU,IAAG,UAAU,GAAC,IAAI;IAK5B,MAAM,CAAC,WAAW,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAI9C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM;IAI3E,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,IAAI,EAAC,MAAM,EAAE,GAAC,UAAU,GAAE,WAAW,CAAC,MAAM;IAQlG,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAC,MAAM;IAIpE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAMhE,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAMnG,MAAM,IAAI,OAAO;IAOjB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;CAG1B;AAED,qBAAa,OAAQ,YAAW,WAAW,CAAC,gBAAgB;IAEnD,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE;gBAAjB,KAAK,GAAE,CAAC,MAAM,CAAC,EAAO;IAI/B,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAOpD"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.BinaryT = exports.Binary = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
class Binary {
|
|
40
|
+
bb = null;
|
|
41
|
+
bb_pos = 0;
|
|
42
|
+
__init(i, bb) {
|
|
43
|
+
this.bb_pos = i;
|
|
44
|
+
this.bb = bb;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
static getRootAsBinary(bb, obj) {
|
|
48
|
+
return (obj || new Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
49
|
+
}
|
|
50
|
+
static getSizePrefixedRootAsBinary(bb, obj) {
|
|
51
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
52
|
+
return (obj || new Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
53
|
+
}
|
|
54
|
+
value(index) {
|
|
55
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
56
|
+
return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
|
|
57
|
+
}
|
|
58
|
+
valueLength() {
|
|
59
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
60
|
+
return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
|
|
61
|
+
}
|
|
62
|
+
valueArray() {
|
|
63
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
64
|
+
return offset ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + offset), this.bb.__vector_len(this.bb_pos + offset)) : null;
|
|
65
|
+
}
|
|
66
|
+
static startBinary(builder) {
|
|
67
|
+
builder.startObject(1);
|
|
68
|
+
}
|
|
69
|
+
static addValue(builder, valueOffset) {
|
|
70
|
+
builder.addFieldOffset(0, valueOffset, 0);
|
|
71
|
+
}
|
|
72
|
+
static createValueVector(builder, data) {
|
|
73
|
+
builder.startVector(1, data.length, 1);
|
|
74
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
75
|
+
builder.addInt8(data[i]);
|
|
76
|
+
}
|
|
77
|
+
return builder.endVector();
|
|
78
|
+
}
|
|
79
|
+
static startValueVector(builder, numElems) {
|
|
80
|
+
builder.startVector(1, numElems, 1);
|
|
81
|
+
}
|
|
82
|
+
static endBinary(builder) {
|
|
83
|
+
const offset = builder.endObject();
|
|
84
|
+
builder.requiredField(offset, 4); // value
|
|
85
|
+
return offset;
|
|
86
|
+
}
|
|
87
|
+
static createBinary(builder, valueOffset) {
|
|
88
|
+
Binary.startBinary(builder);
|
|
89
|
+
Binary.addValue(builder, valueOffset);
|
|
90
|
+
return Binary.endBinary(builder);
|
|
91
|
+
}
|
|
92
|
+
unpack() {
|
|
93
|
+
return new BinaryT(this.bb.createScalarList(this.value.bind(this), this.valueLength()));
|
|
94
|
+
}
|
|
95
|
+
unpackTo(_o) {
|
|
96
|
+
_o.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.Binary = Binary;
|
|
100
|
+
class BinaryT {
|
|
101
|
+
value;
|
|
102
|
+
constructor(value = []) {
|
|
103
|
+
this.value = value;
|
|
104
|
+
}
|
|
105
|
+
pack(builder) {
|
|
106
|
+
const value = Binary.createValueVector(builder, this.value);
|
|
107
|
+
return Binary.createBinary(builder, value);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.BinaryT = BinaryT;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Binary } from '../../fbs/data-producer/binary';
|
|
2
|
+
import { String } from '../../fbs/data-producer/string';
|
|
3
|
+
export declare enum Data {
|
|
4
|
+
NONE = 0,
|
|
5
|
+
String = 1,
|
|
6
|
+
Binary = 2
|
|
7
|
+
}
|
|
8
|
+
export declare function unionToData(type: Data, accessor: (obj: Binary | String) => Binary | String | null): Binary | String | null;
|
|
9
|
+
export declare function unionListToData(type: Data, accessor: (index: number, obj: Binary | String) => Binary | String | null, index: number): Binary | String | null;
|
|
10
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/fbs/data-producer/data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAW,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAW,MAAM,gCAAgC,CAAC;AAGjE,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,MAAM,IAAI;IACV,MAAM,IAAI;CACX;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,MAAM,GAAC,MAAM,KAAK,MAAM,GAAC,MAAM,GAAC,IAAI,GAClD,MAAM,GAAC,MAAM,GAAC,IAAI,CAOpB;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,MAAM,GAAC,MAAM,KAAK,MAAM,GAAC,MAAM,GAAC,IAAI,EAClE,KAAK,EAAE,MAAM,GACZ,MAAM,GAAC,MAAM,GAAC,IAAI,CAOpB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Data = void 0;
|
|
5
|
+
exports.unionToData = unionToData;
|
|
6
|
+
exports.unionListToData = unionListToData;
|
|
7
|
+
const binary_1 = require("../../fbs/data-producer/binary");
|
|
8
|
+
const string_1 = require("../../fbs/data-producer/string");
|
|
9
|
+
var Data;
|
|
10
|
+
(function (Data) {
|
|
11
|
+
Data[Data["NONE"] = 0] = "NONE";
|
|
12
|
+
Data[Data["String"] = 1] = "String";
|
|
13
|
+
Data[Data["Binary"] = 2] = "Binary";
|
|
14
|
+
})(Data || (exports.Data = Data = {}));
|
|
15
|
+
function unionToData(type, accessor) {
|
|
16
|
+
switch (Data[type]) {
|
|
17
|
+
case 'NONE': return null;
|
|
18
|
+
case 'String': return accessor(new string_1.String());
|
|
19
|
+
case 'Binary': return accessor(new binary_1.Binary());
|
|
20
|
+
default: return null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function unionListToData(type, accessor, index) {
|
|
24
|
+
switch (Data[type]) {
|
|
25
|
+
case 'NONE': return null;
|
|
26
|
+
case 'String': return accessor(index, new string_1.String());
|
|
27
|
+
case 'Binary': return accessor(index, new binary_1.Binary());
|
|
28
|
+
default: return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class String implements flatbuffers.IUnpackableObject<StringT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): String;
|
|
6
|
+
static getRootAsString(bb: flatbuffers.ByteBuffer, obj?: String): String;
|
|
7
|
+
static getSizePrefixedRootAsString(bb: flatbuffers.ByteBuffer, obj?: String): String;
|
|
8
|
+
value(): string | null;
|
|
9
|
+
value(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
10
|
+
static startString(builder: flatbuffers.Builder): void;
|
|
11
|
+
static addValue(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): void;
|
|
12
|
+
static endString(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
13
|
+
static createString(builder: flatbuffers.Builder, valueOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
14
|
+
unpack(): StringT;
|
|
15
|
+
unpackTo(_o: StringT): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class StringT implements flatbuffers.IGeneratedObject {
|
|
18
|
+
value: string | Uint8Array | null;
|
|
19
|
+
constructor(value?: string | Uint8Array | null);
|
|
20
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../src/fbs/data-producer/string.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,MAAO,YAAW,WAAW,CAAC,iBAAiB,CAAC,OAAO,CAAC;IACnE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,MAAM;IAMpD,MAAM,CAAC,eAAe,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAIrE,MAAM,CAAC,2BAA2B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,MAAM,GAAE,MAAM;IAKjF,KAAK,IAAG,MAAM,GAAC,IAAI;IACnB,KAAK,CAAC,gBAAgB,EAAC,WAAW,CAAC,QAAQ,GAAE,MAAM,GAAC,UAAU,GAAC,IAAI;IAMnE,MAAM,CAAC,WAAW,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAI9C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM;IAI3E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAMhE,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAMnG,MAAM,IAAI,OAAO;IAOjB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;CAG1B;AAED,qBAAa,OAAQ,YAAW,WAAW,CAAC,gBAAgB;IAEnD,KAAK,EAAE,MAAM,GAAC,UAAU,GAAC,IAAI;gBAA7B,KAAK,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW;IAI7C,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAOpD"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.StringT = exports.String = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
class String {
|
|
40
|
+
bb = null;
|
|
41
|
+
bb_pos = 0;
|
|
42
|
+
__init(i, bb) {
|
|
43
|
+
this.bb_pos = i;
|
|
44
|
+
this.bb = bb;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
static getRootAsString(bb, obj) {
|
|
48
|
+
return (obj || new String()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
49
|
+
}
|
|
50
|
+
static getSizePrefixedRootAsString(bb, obj) {
|
|
51
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
52
|
+
return (obj || new String()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
53
|
+
}
|
|
54
|
+
value(optionalEncoding) {
|
|
55
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
56
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
57
|
+
}
|
|
58
|
+
static startString(builder) {
|
|
59
|
+
builder.startObject(1);
|
|
60
|
+
}
|
|
61
|
+
static addValue(builder, valueOffset) {
|
|
62
|
+
builder.addFieldOffset(0, valueOffset, 0);
|
|
63
|
+
}
|
|
64
|
+
static endString(builder) {
|
|
65
|
+
const offset = builder.endObject();
|
|
66
|
+
builder.requiredField(offset, 4); // value
|
|
67
|
+
return offset;
|
|
68
|
+
}
|
|
69
|
+
static createString(builder, valueOffset) {
|
|
70
|
+
String.startString(builder);
|
|
71
|
+
String.addValue(builder, valueOffset);
|
|
72
|
+
return String.endString(builder);
|
|
73
|
+
}
|
|
74
|
+
unpack() {
|
|
75
|
+
return new StringT(this.value());
|
|
76
|
+
}
|
|
77
|
+
unpackTo(_o) {
|
|
78
|
+
_o.value = this.value();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.String = String;
|
|
82
|
+
class StringT {
|
|
83
|
+
value;
|
|
84
|
+
constructor(value = null) {
|
|
85
|
+
this.value = value;
|
|
86
|
+
}
|
|
87
|
+
pack(builder) {
|
|
88
|
+
const value = (this.value !== null ? builder.createString(this.value) : 0);
|
|
89
|
+
return String.createString(builder, value);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.StringT = StringT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/fbs/message/type.ts"],"names":[],"mappings":"AAEA,oBAAY,IAAI;IACd,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,GAAG,IAAI;CACR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Type = void 0;
|
|
5
|
+
var Type;
|
|
6
|
+
(function (Type) {
|
|
7
|
+
Type[Type["REQUEST"] = 0] = "REQUEST";
|
|
8
|
+
Type[Type["RESPONSE"] = 1] = "RESPONSE";
|
|
9
|
+
Type[Type["NOTIFICATION"] = 2] = "NOTIFICATION";
|
|
10
|
+
Type[Type["LOG"] = 3] = "LOG";
|
|
11
|
+
})(Type || (exports.Type = Type = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Log } from '../../fbs/log/log';
|
|
2
|
+
import { Notification } from '../../fbs/notification-from-worker/notification';
|
|
3
|
+
import { Response } from '../../fbs/response/response';
|
|
4
|
+
export declare enum Body {
|
|
5
|
+
NONE = 0,
|
|
6
|
+
Response = 1,
|
|
7
|
+
Notification = 2,
|
|
8
|
+
Log = 3
|
|
9
|
+
}
|
|
10
|
+
export declare function unionToBody(type: Body, accessor: (obj: Log | Notification | Response) => Log | Notification | Response | null): Log | Notification | Response | null;
|
|
11
|
+
export declare function unionListToBody(type: Body, accessor: (index: number, obj: Log | Notification | Response) => Log | Notification | Response | null, index: number): Log | Notification | Response | null;
|
|
12
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-from-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAiB,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAa,MAAM,6BAA6B,CAAC;AAGlE,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,GAAG,IAAI;CACR;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,GAAG,GAAC,YAAY,GAAC,QAAQ,KAAK,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,GAC1E,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,CAQhC;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,GAAG,GAAC,YAAY,GAAC,QAAQ,KAAK,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,EAC1F,KAAK,EAAE,MAAM,GACZ,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,CAQhC"}
|