@stryke/capnp 0.5.0 → 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.
@@ -44,7 +44,7 @@ import {
44
44
  setUint64,
45
45
  setUint8,
46
46
  testWhich
47
- } from "./chunk-I2A4KWAA.js";
47
+ } from "./chunk-UHN7QD4F.js";
48
48
 
49
49
  // ../path/src/exists.ts
50
50
  import { existsSync as existsSyncFs } from "node:fs";
@@ -122,7 +122,7 @@ import {
122
122
  testWhich,
123
123
  trackPointerAllocation,
124
124
  validate
125
- } from "./chunk-I2A4KWAA.js";
125
+ } from "./chunk-UHN7QD4F.js";
126
126
 
127
127
  // ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=53996ae63a1465953815fff49405f2224c85d26eeeff469d2b1f87e1c2af451d_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.UAt3nLGq.mjs
128
128
  var Interface = class extends Pointer {
@@ -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) => {
@@ -2088,86 +2092,6 @@ function checkDataBounds(byteOffset, byteLength, s) {
2088
2092
  }
2089
2093
  __name(checkDataBounds, "checkDataBounds");
2090
2094
 
2091
- // ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=53996ae63a1465953815fff49405f2224c85d26eeeff469d2b1f87e1c2af451d_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
2092
- function CompositeList(CompositeClass) {
2093
- return (_class5 = class extends List {
2094
- static __initStatic5() {this._capnp = {
2095
- compositeSize: CompositeClass._capnp.size,
2096
- displayName: `List<${CompositeClass._capnp.displayName}>`,
2097
- size: ListElementSize.COMPOSITE
2098
- }}
2099
- get(index) {
2100
- return new CompositeClass(
2101
- this.segment,
2102
- this.byteOffset,
2103
- this._capnp.depthLimit - 1,
2104
- index
2105
- );
2106
- }
2107
- set(index, value) {
2108
- copyFrom(value, this.get(index));
2109
- }
2110
- [Symbol.toStringTag]() {
2111
- return `Composite_${super.toString()},cls:${CompositeClass.toString()}`;
2112
- }
2113
- }, _class5.__initStatic5(), _class5);
2114
- }
2115
- __name(CompositeList, "CompositeList");
2116
- function _makePrimitiveMaskFn(byteLength, setter) {
2117
- return (x) => {
2118
- const dv = new DataView(new ArrayBuffer(byteLength));
2119
- setter.call(dv, 0, x, true);
2120
- return dv;
2121
- };
2122
- }
2123
- __name(_makePrimitiveMaskFn, "_makePrimitiveMaskFn");
2124
- var getFloat32Mask = _makePrimitiveMaskFn(
2125
- 4,
2126
- DataView.prototype.setFloat32
2127
- );
2128
- var getFloat64Mask = _makePrimitiveMaskFn(
2129
- 8,
2130
- DataView.prototype.setFloat64
2131
- );
2132
- var getInt16Mask = _makePrimitiveMaskFn(
2133
- 2,
2134
- DataView.prototype.setInt16
2135
- );
2136
- var getInt32Mask = _makePrimitiveMaskFn(
2137
- 4,
2138
- DataView.prototype.setInt32
2139
- );
2140
- var getInt64Mask = _makePrimitiveMaskFn(
2141
- 8,
2142
- DataView.prototype.setBigInt64
2143
- );
2144
- var getInt8Mask = _makePrimitiveMaskFn(1, DataView.prototype.setInt8);
2145
- var getUint16Mask = _makePrimitiveMaskFn(
2146
- 2,
2147
- DataView.prototype.setUint16
2148
- );
2149
- var getUint32Mask = _makePrimitiveMaskFn(
2150
- 4,
2151
- DataView.prototype.setUint32
2152
- );
2153
- var getUint64Mask = _makePrimitiveMaskFn(
2154
- 8,
2155
- DataView.prototype.setBigUint64
2156
- );
2157
- var getUint8Mask = _makePrimitiveMaskFn(
2158
- 1,
2159
- DataView.prototype.setUint8
2160
- );
2161
- function getBitMask(value, bitOffset) {
2162
- const dv = new DataView(new ArrayBuffer(1));
2163
- if (!value) {
2164
- return dv;
2165
- }
2166
- dv.setUint8(0, 1 << bitOffset % 8);
2167
- return dv;
2168
- }
2169
- __name(getBitMask, "getBitMask");
2170
-
2171
2095
  // ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=53996ae63a1465953815fff49405f2224c85d26eeeff469d2b1f87e1c2af451d_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.GpvEvMIK.mjs
2172
2096
  var ArenaKind = /* @__PURE__ */ ((ArenaKind2) => {
2173
2097
  ArenaKind2[ArenaKind2["SINGLE_SEGMENT"] = 0] = "SINGLE_SEGMENT";
@@ -2191,11 +2115,11 @@ var ArenaAllocationResult = class {
2191
2115
  this.buffer = buffer;
2192
2116
  }
2193
2117
  };
2194
- var MultiSegmentArena = (_class6 = class {
2118
+ var MultiSegmentArena = (_class5 = class {
2195
2119
  static {
2196
2120
  __name(this, "MultiSegmentArena");
2197
2121
  }
2198
- constructor(buffers = [new ArrayBuffer(DEFAULT_BUFFER_SIZE)]) {;_class6.prototype.__init.call(this);
2122
+ constructor(buffers = [new ArrayBuffer(DEFAULT_BUFFER_SIZE)]) {;_class5.prototype.__init.call(this);
2199
2123
  this.buffers = buffers;
2200
2124
  let i = buffers.length;
2201
2125
  while (--i >= 0) {
@@ -2204,14 +2128,14 @@ var MultiSegmentArena = (_class6 = class {
2204
2128
  }
2205
2129
  }
2206
2130
  }
2207
- static __initStatic6() {this.allocate = allocate$2}
2208
- static __initStatic7() {this.getBuffer = getBuffer$2}
2209
- static __initStatic8() {this.getNumSegments = getNumSegments$2}
2131
+ static __initStatic5() {this.allocate = allocate$2}
2132
+ static __initStatic6() {this.getBuffer = getBuffer$2}
2133
+ static __initStatic7() {this.getNumSegments = getNumSegments$2}
2210
2134
  __init() {this.kind = ArenaKind.MULTI_SEGMENT}
2211
2135
  toString() {
2212
2136
  return format("MultiSegmentArena_segments:%d", getNumSegments$2(this));
2213
2137
  }
2214
- }, _class6.__initStatic6(), _class6.__initStatic7(), _class6.__initStatic8(), _class6);
2138
+ }, _class5.__initStatic5(), _class5.__initStatic6(), _class5.__initStatic7(), _class5);
2215
2139
  function allocate$2(minSize, m) {
2216
2140
  const b = new ArrayBuffer(padToWord$1(Math.max(minSize, DEFAULT_BUFFER_SIZE)));
2217
2141
  m.buffers.push(b);
@@ -2229,16 +2153,16 @@ function getNumSegments$2(m) {
2229
2153
  return m.buffers.length;
2230
2154
  }
2231
2155
  __name(getNumSegments$2, "getNumSegments$2");
2232
- var SingleSegmentArena = (_class7 = class {
2156
+ var SingleSegmentArena = (_class6 = class {
2233
2157
  static {
2234
2158
  __name(this, "SingleSegmentArena");
2235
2159
  }
2236
- static __initStatic9() {this.allocate = allocate$1}
2237
- static __initStatic10() {this.getBuffer = getBuffer$1}
2238
- static __initStatic11() {this.getNumSegments = getNumSegments$1}
2160
+ static __initStatic8() {this.allocate = allocate$1}
2161
+ static __initStatic9() {this.getBuffer = getBuffer$1}
2162
+ static __initStatic10() {this.getNumSegments = getNumSegments$1}
2239
2163
 
2240
2164
  __init2() {this.kind = ArenaKind.SINGLE_SEGMENT}
2241
- constructor(buffer = new ArrayBuffer(DEFAULT_BUFFER_SIZE)) {;_class7.prototype.__init2.call(this);
2165
+ constructor(buffer = new ArrayBuffer(DEFAULT_BUFFER_SIZE)) {;_class6.prototype.__init2.call(this);
2242
2166
  if ((buffer.byteLength & 7) !== 0) {
2243
2167
  throw new Error(format(SEG_NOT_WORD_ALIGNED, buffer.byteLength));
2244
2168
  }
@@ -2247,7 +2171,7 @@ var SingleSegmentArena = (_class7 = class {
2247
2171
  toString() {
2248
2172
  return format("SingleSegmentArena_len:%x", this.buffer.byteLength);
2249
2173
  }
2250
- }, _class7.__initStatic9(), _class7.__initStatic10(), _class7.__initStatic11(), _class7);
2174
+ }, _class6.__initStatic8(), _class6.__initStatic9(), _class6.__initStatic10(), _class6);
2251
2175
  function allocate$1(minSize, segments, s) {
2252
2176
  const srcBuffer = segments.length > 0 ? segments[0].buffer : s.buffer;
2253
2177
  minSize = minSize < MIN_SINGLE_SEGMENT_GROWTH ? MIN_SINGLE_SEGMENT_GROWTH : padToWord$1(minSize);
@@ -2265,15 +2189,15 @@ function getNumSegments$1() {
2265
2189
  return 1;
2266
2190
  }
2267
2191
  __name(getNumSegments$1, "getNumSegments$1");
2268
- var Arena = (_class8 = class {
2192
+ var Arena = (_class7 = class {
2269
2193
  static {
2270
2194
  __name(this, "Arena");
2271
2195
  }
2272
- static __initStatic12() {this.allocate = allocate}
2273
- static __initStatic13() {this.copy = copy$1}
2274
- static __initStatic14() {this.getBuffer = getBuffer}
2275
- static __initStatic15() {this.getNumSegments = getNumSegments}
2276
- }, _class8.__initStatic12(), _class8.__initStatic13(), _class8.__initStatic14(), _class8.__initStatic15(), _class8);
2196
+ static __initStatic11() {this.allocate = allocate}
2197
+ static __initStatic12() {this.copy = copy$1}
2198
+ static __initStatic13() {this.getBuffer = getBuffer}
2199
+ static __initStatic14() {this.getNumSegments = getNumSegments}
2200
+ }, _class7.__initStatic11(), _class7.__initStatic12(), _class7.__initStatic13(), _class7.__initStatic14(), _class7);
2277
2201
  function allocate(minSize, segments, a) {
2278
2202
  switch (a.kind) {
2279
2203
  case ArenaKind.MULTI_SEGMENT: {
@@ -2479,11 +2403,11 @@ function unpack(packed) {
2479
2403
  return dst.buffer;
2480
2404
  }
2481
2405
  __name(unpack, "unpack");
2482
- var Segment = (_class9 = class {
2406
+ var Segment = (_class8 = class {
2483
2407
  static {
2484
2408
  __name(this, "Segment");
2485
2409
  }
2486
- constructor(id, message, buffer, byteLength = 0) {;_class9.prototype.__init3.call(this);
2410
+ constructor(id, message, buffer, byteLength = 0) {;_class8.prototype.__init3.call(this);
2487
2411
  this.id = id;
2488
2412
  this.message = message;
2489
2413
  this.message = message;
@@ -2815,19 +2739,19 @@ var Segment = (_class9 = class {
2815
2739
  this.buffer.byteLength
2816
2740
  );
2817
2741
  }
2818
- }, _class9);
2819
- var Message = (_class10 = class {
2742
+ }, _class8);
2743
+ var Message = (_class9 = class {
2820
2744
  static {
2821
2745
  __name(this, "Message");
2822
2746
  }
2823
- static __initStatic16() {this.allocateSegment = allocateSegment}
2824
- static __initStatic17() {this.dump = exports.dump = dump2}
2825
- static __initStatic18() {this.getRoot = getRoot}
2826
- static __initStatic19() {this.getSegment = getSegment}
2827
- static __initStatic20() {this.initRoot = initRoot}
2828
- static __initStatic21() {this.readRawPointer = exports.readRawPointer = readRawPointer}
2829
- static __initStatic22() {this.toArrayBuffer = toArrayBuffer}
2830
- static __initStatic23() {this.toPackedArrayBuffer = toPackedArrayBuffer}
2747
+ static __initStatic15() {this.allocateSegment = allocateSegment}
2748
+ static __initStatic16() {this.dump = exports.dump = dump2}
2749
+ static __initStatic17() {this.getRoot = getRoot}
2750
+ static __initStatic18() {this.getSegment = getSegment}
2751
+ static __initStatic19() {this.initRoot = initRoot}
2752
+ static __initStatic20() {this.readRawPointer = exports.readRawPointer = readRawPointer}
2753
+ static __initStatic21() {this.toArrayBuffer = toArrayBuffer}
2754
+ static __initStatic22() {this.toPackedArrayBuffer = toPackedArrayBuffer}
2831
2755
 
2832
2756
  /**
2833
2757
  * A Cap'n Proto message.
@@ -2951,7 +2875,7 @@ var Message = (_class10 = class {
2951
2875
  toString() {
2952
2876
  return `Message_arena:${this._capnp.arena}`;
2953
2877
  }
2954
- }, _class10.__initStatic16(), _class10.__initStatic17(), _class10.__initStatic18(), _class10.__initStatic19(), _class10.__initStatic20(), _class10.__initStatic21(), _class10.__initStatic22(), _class10.__initStatic23(), _class10);
2878
+ }, _class9.__initStatic15(), _class9.__initStatic16(), _class9.__initStatic17(), _class9.__initStatic18(), _class9.__initStatic19(), _class9.__initStatic20(), _class9.__initStatic21(), _class9.__initStatic22(), _class9);
2955
2879
  function initMessage(src, packed = true, singleSegment = false) {
2956
2880
  if (src === void 0) {
2957
2881
  return {
@@ -3165,6 +3089,87 @@ function copy(m) {
3165
3089
  }
3166
3090
  __name(copy, "copy");
3167
3091
 
3092
+ // ../../node_modules/.pnpm/capnp-es@0.0.11_patch_hash=53996ae63a1465953815fff49405f2224c85d26eeeff469d2b1f87e1c2af451d_typescript@5.8.3/node_modules/capnp-es/dist/shared/capnp-es.BvfUH5E6.mjs
3093
+ function CompositeList(CompositeClass) {
3094
+ return (_class10 = class extends List {
3095
+ static __initStatic23() {this._capnp = {
3096
+ compositeSize: CompositeClass._capnp.size,
3097
+ displayName: `List<${CompositeClass._capnp.displayName}>`,
3098
+ size: ListElementSize.COMPOSITE
3099
+ }}
3100
+ get(index) {
3101
+ return new CompositeClass(
3102
+ this.segment,
3103
+ this.byteOffset,
3104
+ this._capnp.depthLimit - 1,
3105
+ index
3106
+ );
3107
+ }
3108
+ set(index, value) {
3109
+ copyFrom(value, this.get(index));
3110
+ }
3111
+ [Symbol.toStringTag]() {
3112
+ return `Composite_${super.toString()},cls:${CompositeClass.toString()}`;
3113
+ }
3114
+ }, _class10.__initStatic23(), _class10);
3115
+ }
3116
+ __name(CompositeList, "CompositeList");
3117
+ function _makePrimitiveMaskFn(byteLength, setter) {
3118
+ return (x) => {
3119
+ const dv = new DataView(new ArrayBuffer(byteLength));
3120
+ setter.call(dv, 0, x, true);
3121
+ return dv;
3122
+ };
3123
+ }
3124
+ __name(_makePrimitiveMaskFn, "_makePrimitiveMaskFn");
3125
+ var getFloat32Mask = _makePrimitiveMaskFn(
3126
+ 4,
3127
+ DataView.prototype.setFloat32
3128
+ );
3129
+ var getFloat64Mask = _makePrimitiveMaskFn(
3130
+ 8,
3131
+ DataView.prototype.setFloat64
3132
+ );
3133
+ var getInt16Mask = _makePrimitiveMaskFn(
3134
+ 2,
3135
+ DataView.prototype.setInt16
3136
+ );
3137
+ var getInt32Mask = _makePrimitiveMaskFn(
3138
+ 4,
3139
+ DataView.prototype.setInt32
3140
+ );
3141
+ var getInt64Mask = _makePrimitiveMaskFn(
3142
+ 8,
3143
+ DataView.prototype.setBigInt64
3144
+ );
3145
+ var getInt8Mask = _makePrimitiveMaskFn(1, DataView.prototype.setInt8);
3146
+ var getUint16Mask = _makePrimitiveMaskFn(
3147
+ 2,
3148
+ DataView.prototype.setUint16
3149
+ );
3150
+ var getUint32Mask = _makePrimitiveMaskFn(
3151
+ 4,
3152
+ DataView.prototype.setUint32
3153
+ );
3154
+ var getUint64Mask = _makePrimitiveMaskFn(
3155
+ 8,
3156
+ DataView.prototype.setBigUint64
3157
+ );
3158
+ var getUint8Mask = _makePrimitiveMaskFn(
3159
+ 1,
3160
+ DataView.prototype.setUint8
3161
+ );
3162
+ function getBitMask(value, bitOffset) {
3163
+ const dv = new DataView(new ArrayBuffer(1));
3164
+ if (!value) {
3165
+ return dv;
3166
+ }
3167
+ dv.setUint8(0, 1 << bitOffset % 8);
3168
+ return dv;
3169
+ }
3170
+ __name(getBitMask, "getBitMask");
3171
+
3172
+
3168
3173
 
3169
3174
 
3170
3175
 
@@ -3302,4 +3307,4 @@ __name(copy, "copy");
3302
3307
 
3303
3308
 
3304
3309
 
3305
- 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_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.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; exports.Message = Message; exports.readRawPointer = readRawPointer;
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
+ };