@stryke/capnp 0.4.5 → 0.6.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.
@@ -1,5 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10;var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, { get: all[name], enumerable: true });
6
+ };
3
7
 
4
8
  // ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=53996ae63a1465953815fff49405f2224c85d26eeeff469d2b1f87e1c2af451d_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
5
9
  var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
@@ -66,6 +70,7 @@ var RPC_CALL_QUEUE_FULL = "CAPNP-TS101 Promised answer call queue full.";
66
70
  var RPC_QUEUE_CALL_CANCEL = "CAPNP-TS102 Queue call canceled.";
67
71
  var RPC_ZERO_REF = "CAPNP-TS105 Ref() called on zeroed refcount.";
68
72
  var RPC_IMPORT_CLOSED = "CAPNP-TS106 Call on closed import.";
73
+ var RPC_METHOD_NOT_IMPLEMENTED = "CAPNP-TS107 Method not implemented.";
69
74
  var RPC_BAD_TARGET = "CAPNP-TS109 Target not found.";
70
75
  var RPC_RETURN_FOR_UNKNOWN_QUESTION = "CAPNP-TS111 Received return for unknown question (id=%s).";
71
76
  var RPC_QUESTION_ID_REUSED = "CAPNP-TS112 Attempted to re-use question id (%s).";
@@ -702,6 +707,24 @@ function isNull(p) {
702
707
  return p.segment.isWordZero(p.byteOffset);
703
708
  }
704
709
  __name(isNull, "isNull");
710
+ function relocateTo(dst, src) {
711
+ const t = followFars(src);
712
+ const lo = t.segment.getUint8(t.byteOffset) & 3;
713
+ const hi = t.segment.getUint32(t.byteOffset + 4);
714
+ erase(dst);
715
+ const res = initPointer(
716
+ t.segment,
717
+ t.byteOffset + 8 + getOffsetWords(t) * 8,
718
+ dst
719
+ );
720
+ res.pointer.segment.setUint32(
721
+ res.pointer.byteOffset,
722
+ lo | res.offsetWords << 2
723
+ );
724
+ res.pointer.segment.setUint32(res.pointer.byteOffset + 4, hi);
725
+ erasePointer(src);
726
+ }
727
+ __name(relocateTo, "relocateTo");
705
728
  function setFarPointer(doubleFar, offsetWords, segmentId, p) {
706
729
  const A = PointerType.FAR;
707
730
  const B = doubleFar ? 1 : 0;
@@ -1550,6 +1573,10 @@ function checkPointerBounds(index, s) {
1550
1573
  }
1551
1574
  }
1552
1575
  __name(checkPointerBounds, "checkPointerBounds");
1576
+ function getInterfaceClientOrNullAt(index, s) {
1577
+ return getInterfaceClientOrNull(getPointer(index, s));
1578
+ }
1579
+ __name(getInterfaceClientOrNullAt, "getInterfaceClientOrNullAt");
1553
1580
  function getInterfaceClientOrNull(p) {
1554
1581
  let client = null;
1555
1582
  const capId = getInterfacePointer(p);
@@ -2718,11 +2745,11 @@ var Message = (_class9 = class {
2718
2745
  __name(this, "Message");
2719
2746
  }
2720
2747
  static __initStatic15() {this.allocateSegment = allocateSegment}
2721
- static __initStatic16() {this.dump = dump2}
2748
+ static __initStatic16() {this.dump = exports.dump = dump2}
2722
2749
  static __initStatic17() {this.getRoot = getRoot}
2723
2750
  static __initStatic18() {this.getSegment = getSegment}
2724
2751
  static __initStatic19() {this.initRoot = initRoot}
2725
- static __initStatic20() {this.readRawPointer = readRawPointer}
2752
+ static __initStatic20() {this.readRawPointer = exports.readRawPointer = readRawPointer}
2726
2753
  static __initStatic21() {this.toArrayBuffer = toArrayBuffer}
2727
2754
  static __initStatic22() {this.toPackedArrayBuffer = toPackedArrayBuffer}
2728
2755
 
@@ -3223,4 +3250,61 @@ __name(getBitMask, "getBitMask");
3223
3250
 
3224
3251
 
3225
3252
 
3226
- exports.__name = __name; exports.ListElementSize = ListElementSize; exports.MAX_DEPTH = MAX_DEPTH; exports.INVARIANT_UNREACHABLE_CODE = INVARIANT_UNREACHABLE_CODE; exports.NOT_IMPLEMENTED = NOT_IMPLEMENTED; exports.RPC_NULL_CLIENT = RPC_NULL_CLIENT; exports.RPC_CALL_QUEUE_FULL = RPC_CALL_QUEUE_FULL; exports.RPC_QUEUE_CALL_CANCEL = RPC_QUEUE_CALL_CANCEL; exports.RPC_ZERO_REF = RPC_ZERO_REF; exports.RPC_IMPORT_CLOSED = RPC_IMPORT_CLOSED; exports.RPC_BAD_TARGET = RPC_BAD_TARGET; exports.RPC_RETURN_FOR_UNKNOWN_QUESTION = RPC_RETURN_FOR_UNKNOWN_QUESTION; exports.RPC_QUESTION_ID_REUSED = RPC_QUESTION_ID_REUSED; exports.RPC_UNKNOWN_EXPORT_ID = RPC_UNKNOWN_EXPORT_ID; exports.RPC_UNKNOWN_ANSWER_ID = RPC_UNKNOWN_ANSWER_ID; exports.RPC_UNKNOWN_CAP_DESCRIPTOR = RPC_UNKNOWN_CAP_DESCRIPTOR; exports.RPC_METHOD_ERROR = RPC_METHOD_ERROR; exports.RPC_ERROR = RPC_ERROR; exports.RPC_NO_MAIN_INTERFACE = RPC_NO_MAIN_INTERFACE; exports.RPC_FINISH_UNKNOWN_ANSWER = RPC_FINISH_UNKNOWN_ANSWER; exports.RPC_FULFILL_ALREADY_CALLED = RPC_FULFILL_ALREADY_CALLED; exports.format = format; exports.pad = pad; exports.ObjectSize = ObjectSize; exports.adopt = adopt; exports.disown = disown; exports.copyFrom = copyFrom; exports.getContent = getContent; exports.getTargetPointerType = getTargetPointerType; exports.isNull = isNull; exports.PointerType = PointerType; exports.Pointer = Pointer; exports.List = List; exports.Data = Data; exports.Text = Text; exports.Struct = Struct; exports.AnyStruct = AnyStruct; exports.FixedAnswer = FixedAnswer; exports.ErrorAnswer = ErrorAnswer; exports.ErrorClient = ErrorClient; exports.initStruct = initStruct; exports.initStructAt = initStructAt; exports.getInterfaceClientOrNull = getInterfaceClientOrNull; exports.getAs = getAs; exports.getBit = getBit; exports.getData = getData; exports.getFloat32 = getFloat32; exports.getFloat64 = getFloat64; exports.getInt16 = getInt16; exports.getInt32 = getInt32; exports.getInt64 = getInt64; exports.getInt8 = getInt8; exports.getList = getList; exports.getPointer = getPointer; exports.getStruct = getStruct; exports.getText = getText; exports.getUint16 = getUint16; exports.getUint32 = getUint32; exports.getUint64 = getUint64; exports.getUint8 = getUint8; exports.initData = initData; exports.initList = initList; exports.setBit = setBit; exports.setFloat32 = setFloat32; exports.setFloat64 = setFloat64; exports.setInt16 = setInt16; exports.setInt32 = setInt32; exports.setInt64 = setInt64; exports.setInt8 = setInt8; exports.setText = setText; exports.setUint16 = setUint16; exports.setUint32 = setUint32; exports.setUint64 = setUint64; exports.setUint8 = setUint8; exports.testWhich = testWhich; exports.CompositeList = CompositeList; exports.getUint16Mask = getUint16Mask; exports.getUint8Mask = getUint8Mask; exports.getBitMask = getBitMask; exports.Message = Message;
3253
+
3254
+
3255
+
3256
+
3257
+
3258
+
3259
+
3260
+
3261
+
3262
+
3263
+
3264
+
3265
+
3266
+
3267
+
3268
+
3269
+
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+
3276
+
3277
+
3278
+
3279
+
3280
+
3281
+
3282
+
3283
+
3284
+
3285
+
3286
+
3287
+
3288
+
3289
+
3290
+
3291
+
3292
+
3293
+
3294
+
3295
+
3296
+
3297
+
3298
+
3299
+
3300
+
3301
+
3302
+
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+
3310
+ exports.__name = __name; exports.__export = __export; exports.ListElementSize = ListElementSize; exports.MAX_DEPTH = MAX_DEPTH; exports.INVARIANT_UNREACHABLE_CODE = INVARIANT_UNREACHABLE_CODE; exports.NOT_IMPLEMENTED = NOT_IMPLEMENTED; exports.RPC_NULL_CLIENT = RPC_NULL_CLIENT; exports.RPC_CALL_QUEUE_FULL = RPC_CALL_QUEUE_FULL; exports.RPC_QUEUE_CALL_CANCEL = RPC_QUEUE_CALL_CANCEL; exports.RPC_ZERO_REF = RPC_ZERO_REF; exports.RPC_IMPORT_CLOSED = RPC_IMPORT_CLOSED; exports.RPC_METHOD_NOT_IMPLEMENTED = RPC_METHOD_NOT_IMPLEMENTED; exports.RPC_BAD_TARGET = RPC_BAD_TARGET; exports.RPC_RETURN_FOR_UNKNOWN_QUESTION = RPC_RETURN_FOR_UNKNOWN_QUESTION; exports.RPC_QUESTION_ID_REUSED = RPC_QUESTION_ID_REUSED; exports.RPC_UNKNOWN_EXPORT_ID = RPC_UNKNOWN_EXPORT_ID; exports.RPC_UNKNOWN_ANSWER_ID = RPC_UNKNOWN_ANSWER_ID; exports.RPC_UNKNOWN_CAP_DESCRIPTOR = RPC_UNKNOWN_CAP_DESCRIPTOR; exports.RPC_METHOD_ERROR = RPC_METHOD_ERROR; exports.RPC_ERROR = RPC_ERROR; exports.RPC_NO_MAIN_INTERFACE = RPC_NO_MAIN_INTERFACE; exports.RPC_FINISH_UNKNOWN_ANSWER = RPC_FINISH_UNKNOWN_ANSWER; exports.RPC_FULFILL_ALREADY_CALLED = RPC_FULFILL_ALREADY_CALLED; exports.format = format; exports.pad = pad; exports.ObjectSize = ObjectSize; exports.Orphan = Orphan; exports.adopt = adopt; exports.disown = disown; exports.dump = dump; exports.getListByteLength = getListByteLength; exports.getListElementByteLength = getListElementByteLength; exports.add = add; exports.copyFrom = copyFrom; exports.erase = erase; exports.erasePointer = erasePointer; exports.followFar = followFar; exports.followFars = followFars; exports.getCapabilityId = getCapabilityId; exports.getContent = getContent; exports.getFarSegmentId = getFarSegmentId; exports.getListElementSize = getListElementSize; exports.getListLength = getListLength; exports.getOffsetWords = getOffsetWords; exports.getPointerType = getPointerType; exports.getStructDataWords = getStructDataWords; exports.getStructPointerLength = getStructPointerLength; exports.getStructSize = getStructSize; exports.getTargetCompositeListTag = getTargetCompositeListTag; exports.getTargetCompositeListSize = getTargetCompositeListSize; exports.getTargetListElementSize = getTargetListElementSize; exports.getTargetListLength = getTargetListLength; exports.getTargetPointerType = getTargetPointerType; exports.getTargetStructSize = getTargetStructSize; exports.initPointer = initPointer; exports.isDoubleFar = isDoubleFar; exports.isNull = isNull; exports.relocateTo = relocateTo; exports.setFarPointer = setFarPointer; exports.setInterfacePointer = setInterfacePointer; exports.getInterfacePointer = getInterfacePointer; exports.setListPointer = setListPointer; exports.setStructPointer = setStructPointer; exports.validate = validate; exports.copyFromInterface = copyFromInterface; exports.copyFromList = copyFromList; exports.copyFromStruct = copyFromStruct; exports.trackPointerAllocation = trackPointerAllocation; exports.PointerAllocationResult = PointerAllocationResult; exports.PointerType = PointerType; exports.Pointer = Pointer; exports.List = List; exports.Data = Data; exports.Text = Text; exports.Struct = Struct; exports.AnyStruct = AnyStruct; exports.FixedAnswer = FixedAnswer; exports.ErrorAnswer = ErrorAnswer; exports.ErrorClient = ErrorClient; exports.clientOrNull = clientOrNull; exports.initStruct = initStruct; exports.initStructAt = initStructAt; exports.checkPointerBounds = checkPointerBounds; exports.getInterfaceClientOrNullAt = getInterfaceClientOrNullAt; exports.getInterfaceClientOrNull = getInterfaceClientOrNull; exports.resize = resize; exports.getAs = getAs; exports.getBit = getBit; exports.getData = getData; exports.getDataSection = getDataSection; exports.getFloat32 = getFloat32; exports.getFloat64 = getFloat64; exports.getInt16 = getInt16; exports.getInt32 = getInt32; exports.getInt64 = getInt64; exports.getInt8 = getInt8; exports.getList = getList; exports.getPointer = getPointer; exports.getPointerAs = getPointerAs; exports.getPointerSection = getPointerSection; exports.getSize = getSize; exports.getStruct = getStruct; exports.getText = getText; exports.getUint16 = getUint16; exports.getUint32 = getUint32; exports.getUint64 = getUint64; exports.getUint8 = getUint8; exports.initData = initData; exports.initList = initList; exports.setBit = setBit; exports.setFloat32 = setFloat32; exports.setFloat64 = setFloat64; exports.setInt16 = setInt16; exports.setInt32 = setInt32; exports.setInt64 = setInt64; exports.setInt8 = setInt8; exports.setText = setText; exports.setUint16 = setUint16; exports.setUint32 = setUint32; exports.setUint64 = setUint64; exports.setUint8 = setUint8; exports.testWhich = testWhich; exports.checkDataBounds = checkDataBounds; exports.Message = Message; exports.readRawPointer = readRawPointer; exports.CompositeList = CompositeList; exports.getFloat32Mask = getFloat32Mask; exports.getFloat64Mask = getFloat64Mask; exports.getInt16Mask = getInt16Mask; exports.getInt32Mask = getInt32Mask; exports.getInt64Mask = getInt64Mask; exports.getInt8Mask = getInt8Mask; exports.getUint16Mask = getUint16Mask; exports.getUint32Mask = getUint32Mask; exports.getUint64Mask = getUint64Mask; exports.getUint8Mask = getUint8Mask; exports.getBitMask = getBitMask;
@@ -0,0 +1,130 @@
1
+ import {
2
+ AnyPointerList,
3
+ BoolList,
4
+ Conn,
5
+ DataList,
6
+ Deferred,
7
+ DeferredTransport,
8
+ Float32List,
9
+ Float64List,
10
+ Int16List,
11
+ Int32List,
12
+ Int64List,
13
+ Int8List,
14
+ Interface,
15
+ InterfaceList,
16
+ Pipeline,
17
+ PointerList,
18
+ Registry,
19
+ Server,
20
+ TextList,
21
+ Uint16List,
22
+ Uint32List,
23
+ Uint64List,
24
+ Uint8List,
25
+ Void,
26
+ VoidList,
27
+ answerPipelineClient,
28
+ clientFromResolution,
29
+ copyCall,
30
+ isDataCall,
31
+ isFuncCall,
32
+ isSameClient,
33
+ placeParams,
34
+ utils
35
+ } from "./chunk-I2TLOFS6.js";
36
+ import {
37
+ CompositeList,
38
+ Data,
39
+ ErrorClient,
40
+ List,
41
+ ListElementSize,
42
+ Message,
43
+ ObjectSize,
44
+ Orphan,
45
+ Pointer,
46
+ PointerType,
47
+ Struct,
48
+ Text,
49
+ __export,
50
+ clientOrNull,
51
+ getBitMask,
52
+ getFloat32Mask,
53
+ getFloat64Mask,
54
+ getInt16Mask,
55
+ getInt32Mask,
56
+ getInt64Mask,
57
+ getInt8Mask,
58
+ getUint16Mask,
59
+ getUint32Mask,
60
+ getUint64Mask,
61
+ getUint8Mask,
62
+ readRawPointer
63
+ } from "./chunk-UHN7QD4F.js";
64
+
65
+ // src/capnp.ts
66
+ var capnp_exports = {};
67
+ __export(capnp_exports, {
68
+ AnyPointerList: () => AnyPointerList,
69
+ BoolList: () => BoolList,
70
+ CompositeList: () => CompositeList,
71
+ Conn: () => Conn,
72
+ Data: () => Data,
73
+ DataList: () => DataList,
74
+ Deferred: () => Deferred,
75
+ DeferredTransport: () => DeferredTransport,
76
+ ErrorClient: () => ErrorClient,
77
+ Float32List: () => Float32List,
78
+ Float64List: () => Float64List,
79
+ Int16List: () => Int16List,
80
+ Int32List: () => Int32List,
81
+ Int64List: () => Int64List,
82
+ Int8List: () => Int8List,
83
+ Interface: () => Interface,
84
+ InterfaceList: () => InterfaceList,
85
+ List: () => List,
86
+ ListElementSize: () => ListElementSize,
87
+ Message: () => Message,
88
+ ObjectSize: () => ObjectSize,
89
+ Orphan: () => Orphan,
90
+ Pipeline: () => Pipeline,
91
+ Pointer: () => Pointer,
92
+ PointerList: () => PointerList,
93
+ PointerType: () => PointerType,
94
+ Registry: () => Registry,
95
+ Server: () => Server,
96
+ Struct: () => Struct,
97
+ Text: () => Text,
98
+ TextList: () => TextList,
99
+ Uint16List: () => Uint16List,
100
+ Uint32List: () => Uint32List,
101
+ Uint64List: () => Uint64List,
102
+ Uint8List: () => Uint8List,
103
+ Void: () => Void,
104
+ VoidList: () => VoidList,
105
+ answerPipelineClient: () => answerPipelineClient,
106
+ clientFromResolution: () => clientFromResolution,
107
+ clientOrNull: () => clientOrNull,
108
+ copyCall: () => copyCall,
109
+ getBitMask: () => getBitMask,
110
+ getFloat32Mask: () => getFloat32Mask,
111
+ getFloat64Mask: () => getFloat64Mask,
112
+ getInt16Mask: () => getInt16Mask,
113
+ getInt32Mask: () => getInt32Mask,
114
+ getInt64Mask: () => getInt64Mask,
115
+ getInt8Mask: () => getInt8Mask,
116
+ getUint16Mask: () => getUint16Mask,
117
+ getUint32Mask: () => getUint32Mask,
118
+ getUint64Mask: () => getUint64Mask,
119
+ getUint8Mask: () => getUint8Mask,
120
+ isDataCall: () => isDataCall,
121
+ isFuncCall: () => isFuncCall,
122
+ isSameClient: () => isSameClient,
123
+ placeParams: () => placeParams,
124
+ readRawPointer: () => readRawPointer,
125
+ utils: () => utils
126
+ });
127
+
128
+ export {
129
+ capnp_exports
130
+ };
@@ -1,5 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, { get: all[name], enumerable: true });
6
+ };
3
7
 
4
8
  // ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=53996ae63a1465953815fff49405f2224c85d26eeeff469d2b1f87e1c2af451d_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.0-_cOx6D.mjs
5
9
  var ListElementSize = /* @__PURE__ */ ((ListElementSize2) => {
@@ -66,6 +70,7 @@ var RPC_CALL_QUEUE_FULL = "CAPNP-TS101 Promised answer call queue full.";
66
70
  var RPC_QUEUE_CALL_CANCEL = "CAPNP-TS102 Queue call canceled.";
67
71
  var RPC_ZERO_REF = "CAPNP-TS105 Ref() called on zeroed refcount.";
68
72
  var RPC_IMPORT_CLOSED = "CAPNP-TS106 Call on closed import.";
73
+ var RPC_METHOD_NOT_IMPLEMENTED = "CAPNP-TS107 Method not implemented.";
69
74
  var RPC_BAD_TARGET = "CAPNP-TS109 Target not found.";
70
75
  var RPC_RETURN_FOR_UNKNOWN_QUESTION = "CAPNP-TS111 Received return for unknown question (id=%s).";
71
76
  var RPC_QUESTION_ID_REUSED = "CAPNP-TS112 Attempted to re-use question id (%s).";
@@ -702,6 +707,24 @@ function isNull(p) {
702
707
  return p.segment.isWordZero(p.byteOffset);
703
708
  }
704
709
  __name(isNull, "isNull");
710
+ function relocateTo(dst, src) {
711
+ const t = followFars(src);
712
+ const lo = t.segment.getUint8(t.byteOffset) & 3;
713
+ const hi = t.segment.getUint32(t.byteOffset + 4);
714
+ erase(dst);
715
+ const res = initPointer(
716
+ t.segment,
717
+ t.byteOffset + 8 + getOffsetWords(t) * 8,
718
+ dst
719
+ );
720
+ res.pointer.segment.setUint32(
721
+ res.pointer.byteOffset,
722
+ lo | res.offsetWords << 2
723
+ );
724
+ res.pointer.segment.setUint32(res.pointer.byteOffset + 4, hi);
725
+ erasePointer(src);
726
+ }
727
+ __name(relocateTo, "relocateTo");
705
728
  function setFarPointer(doubleFar, offsetWords, segmentId, p) {
706
729
  const A = PointerType.FAR;
707
730
  const B = doubleFar ? 1 : 0;
@@ -1550,6 +1573,10 @@ function checkPointerBounds(index, s) {
1550
1573
  }
1551
1574
  }
1552
1575
  __name(checkPointerBounds, "checkPointerBounds");
1576
+ function getInterfaceClientOrNullAt(index, s) {
1577
+ return getInterfaceClientOrNull(getPointer(index, s));
1578
+ }
1579
+ __name(getInterfaceClientOrNullAt, "getInterfaceClientOrNullAt");
1553
1580
  function getInterfaceClientOrNull(p) {
1554
1581
  let client = null;
1555
1582
  const capId = getInterfacePointer(p);
@@ -3144,6 +3171,7 @@ __name(getBitMask, "getBitMask");
3144
3171
 
3145
3172
  export {
3146
3173
  __name,
3174
+ __export,
3147
3175
  ListElementSize,
3148
3176
  MAX_DEPTH,
3149
3177
  INVARIANT_UNREACHABLE_CODE,
@@ -3153,6 +3181,7 @@ export {
3153
3181
  RPC_QUEUE_CALL_CANCEL,
3154
3182
  RPC_ZERO_REF,
3155
3183
  RPC_IMPORT_CLOSED,
3184
+ RPC_METHOD_NOT_IMPLEMENTED,
3156
3185
  RPC_BAD_TARGET,
3157
3186
  RPC_RETURN_FOR_UNKNOWN_QUESTION,
3158
3187
  RPC_QUESTION_ID_REUSED,
@@ -3167,12 +3196,49 @@ export {
3167
3196
  format,
3168
3197
  pad,
3169
3198
  ObjectSize,
3199
+ Orphan,
3170
3200
  adopt,
3171
3201
  disown,
3202
+ dump,
3203
+ getListByteLength,
3204
+ getListElementByteLength,
3205
+ add,
3172
3206
  copyFrom,
3207
+ erase,
3208
+ erasePointer,
3209
+ followFar,
3210
+ followFars,
3211
+ getCapabilityId,
3173
3212
  getContent,
3213
+ getFarSegmentId,
3214
+ getListElementSize,
3215
+ getListLength,
3216
+ getOffsetWords,
3217
+ getPointerType,
3218
+ getStructDataWords,
3219
+ getStructPointerLength,
3220
+ getStructSize,
3221
+ getTargetCompositeListTag,
3222
+ getTargetCompositeListSize,
3223
+ getTargetListElementSize,
3224
+ getTargetListLength,
3174
3225
  getTargetPointerType,
3226
+ getTargetStructSize,
3227
+ initPointer,
3228
+ isDoubleFar,
3175
3229
  isNull,
3230
+ relocateTo,
3231
+ setFarPointer,
3232
+ setInterfacePointer,
3233
+ getInterfacePointer,
3234
+ setListPointer,
3235
+ setStructPointer,
3236
+ validate,
3237
+ copyFromInterface,
3238
+ copyFromList,
3239
+ copyFromStruct,
3240
+ trackPointerAllocation,
3241
+ PointerAllocationResult,
3176
3242
  PointerType,
3177
3243
  Pointer,
3178
3244
  List,
@@ -3183,12 +3249,17 @@ export {
3183
3249
  FixedAnswer,
3184
3250
  ErrorAnswer,
3185
3251
  ErrorClient,
3252
+ clientOrNull,
3186
3253
  initStruct,
3187
3254
  initStructAt,
3255
+ checkPointerBounds,
3256
+ getInterfaceClientOrNullAt,
3188
3257
  getInterfaceClientOrNull,
3258
+ resize,
3189
3259
  getAs,
3190
3260
  getBit,
3191
3261
  getData,
3262
+ getDataSection,
3192
3263
  getFloat32,
3193
3264
  getFloat64,
3194
3265
  getInt16,
@@ -3197,6 +3268,9 @@ export {
3197
3268
  getInt8,
3198
3269
  getList,
3199
3270
  getPointer,
3271
+ getPointerAs,
3272
+ getPointerSection,
3273
+ getSize,
3200
3274
  getStruct,
3201
3275
  getText,
3202
3276
  getUint16,
@@ -3218,9 +3292,19 @@ export {
3218
3292
  setUint64,
3219
3293
  setUint8,
3220
3294
  testWhich,
3295
+ checkDataBounds,
3296
+ Message,
3297
+ readRawPointer,
3221
3298
  CompositeList,
3299
+ getFloat32Mask,
3300
+ getFloat64Mask,
3301
+ getInt16Mask,
3302
+ getInt32Mask,
3303
+ getInt64Mask,
3304
+ getInt8Mask,
3222
3305
  getUint16Mask,
3306
+ getUint32Mask,
3307
+ getUint64Mask,
3223
3308
  getUint8Mask,
3224
- getBitMask,
3225
- Message
3309
+ getBitMask
3226
3310
  };
@@ -0,0 +1,130 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ var _chunkYOA3BS5Qcjs = require('./chunk-YOA3BS5Q.cjs');
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ var _chunkIVTBYMMNcjs = require('./chunk-IVTBYMMN.cjs');
64
+
65
+ // src/capnp.ts
66
+ var capnp_exports = {};
67
+ _chunkIVTBYMMNcjs.__export.call(void 0, capnp_exports, {
68
+ AnyPointerList: () => _chunkYOA3BS5Qcjs.AnyPointerList,
69
+ BoolList: () => _chunkYOA3BS5Qcjs.BoolList,
70
+ CompositeList: () => _chunkIVTBYMMNcjs.CompositeList,
71
+ Conn: () => _chunkYOA3BS5Qcjs.Conn,
72
+ Data: () => _chunkIVTBYMMNcjs.Data,
73
+ DataList: () => _chunkYOA3BS5Qcjs.DataList,
74
+ Deferred: () => _chunkYOA3BS5Qcjs.Deferred,
75
+ DeferredTransport: () => _chunkYOA3BS5Qcjs.DeferredTransport,
76
+ ErrorClient: () => _chunkIVTBYMMNcjs.ErrorClient,
77
+ Float32List: () => _chunkYOA3BS5Qcjs.Float32List,
78
+ Float64List: () => _chunkYOA3BS5Qcjs.Float64List,
79
+ Int16List: () => _chunkYOA3BS5Qcjs.Int16List,
80
+ Int32List: () => _chunkYOA3BS5Qcjs.Int32List,
81
+ Int64List: () => _chunkYOA3BS5Qcjs.Int64List,
82
+ Int8List: () => _chunkYOA3BS5Qcjs.Int8List,
83
+ Interface: () => _chunkYOA3BS5Qcjs.Interface,
84
+ InterfaceList: () => _chunkYOA3BS5Qcjs.InterfaceList,
85
+ List: () => _chunkIVTBYMMNcjs.List,
86
+ ListElementSize: () => _chunkIVTBYMMNcjs.ListElementSize,
87
+ Message: () => _chunkIVTBYMMNcjs.Message,
88
+ ObjectSize: () => _chunkIVTBYMMNcjs.ObjectSize,
89
+ Orphan: () => _chunkIVTBYMMNcjs.Orphan,
90
+ Pipeline: () => _chunkYOA3BS5Qcjs.Pipeline,
91
+ Pointer: () => _chunkIVTBYMMNcjs.Pointer,
92
+ PointerList: () => _chunkYOA3BS5Qcjs.PointerList,
93
+ PointerType: () => _chunkIVTBYMMNcjs.PointerType,
94
+ Registry: () => _chunkYOA3BS5Qcjs.Registry,
95
+ Server: () => _chunkYOA3BS5Qcjs.Server,
96
+ Struct: () => _chunkIVTBYMMNcjs.Struct,
97
+ Text: () => _chunkIVTBYMMNcjs.Text,
98
+ TextList: () => _chunkYOA3BS5Qcjs.TextList,
99
+ Uint16List: () => _chunkYOA3BS5Qcjs.Uint16List,
100
+ Uint32List: () => _chunkYOA3BS5Qcjs.Uint32List,
101
+ Uint64List: () => _chunkYOA3BS5Qcjs.Uint64List,
102
+ Uint8List: () => _chunkYOA3BS5Qcjs.Uint8List,
103
+ Void: () => _chunkYOA3BS5Qcjs.Void,
104
+ VoidList: () => _chunkYOA3BS5Qcjs.VoidList,
105
+ answerPipelineClient: () => _chunkYOA3BS5Qcjs.answerPipelineClient,
106
+ clientFromResolution: () => _chunkYOA3BS5Qcjs.clientFromResolution,
107
+ clientOrNull: () => _chunkIVTBYMMNcjs.clientOrNull,
108
+ copyCall: () => _chunkYOA3BS5Qcjs.copyCall,
109
+ getBitMask: () => _chunkIVTBYMMNcjs.getBitMask,
110
+ getFloat32Mask: () => _chunkIVTBYMMNcjs.getFloat32Mask,
111
+ getFloat64Mask: () => _chunkIVTBYMMNcjs.getFloat64Mask,
112
+ getInt16Mask: () => _chunkIVTBYMMNcjs.getInt16Mask,
113
+ getInt32Mask: () => _chunkIVTBYMMNcjs.getInt32Mask,
114
+ getInt64Mask: () => _chunkIVTBYMMNcjs.getInt64Mask,
115
+ getInt8Mask: () => _chunkIVTBYMMNcjs.getInt8Mask,
116
+ getUint16Mask: () => _chunkIVTBYMMNcjs.getUint16Mask,
117
+ getUint32Mask: () => _chunkIVTBYMMNcjs.getUint32Mask,
118
+ getUint64Mask: () => _chunkIVTBYMMNcjs.getUint64Mask,
119
+ getUint8Mask: () => _chunkIVTBYMMNcjs.getUint8Mask,
120
+ isDataCall: () => _chunkYOA3BS5Qcjs.isDataCall,
121
+ isFuncCall: () => _chunkYOA3BS5Qcjs.isFuncCall,
122
+ isSameClient: () => _chunkYOA3BS5Qcjs.isSameClient,
123
+ placeParams: () => _chunkYOA3BS5Qcjs.placeParams,
124
+ readRawPointer: () => _chunkIVTBYMMNcjs.readRawPointer,
125
+ utils: () => _chunkYOA3BS5Qcjs.utils
126
+ });
127
+
128
+
129
+
130
+ exports.capnp_exports = capnp_exports;