...

Text file src/github.com/google/flatbuffers/tests/ts/reflection_generated.cjs

Documentation: github.com/google/flatbuffers/tests/ts

     1"use strict";
     2var __create = Object.create;
     3var __defProp = Object.defineProperty;
     4var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
     5var __getOwnPropNames = Object.getOwnPropertyNames;
     6var __getProtoOf = Object.getPrototypeOf;
     7var __hasOwnProp = Object.prototype.hasOwnProperty;
     8var __export = (target, all) => {
     9  for (var name in all)
    10    __defProp(target, name, { get: all[name], enumerable: true });
    11};
    12var __copyProps = (to, from, except, desc) => {
    13  if (from && typeof from === "object" || typeof from === "function") {
    14    for (let key of __getOwnPropNames(from))
    15      if (!__hasOwnProp.call(to, key) && key !== except)
    16        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
    17  }
    18  return to;
    19};
    20var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
    21  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
    22  mod
    23));
    24var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
    25
    26// reflection.ts
    27var reflection_exports = {};
    28__export(reflection_exports, {
    29  AdvancedFeatures: () => AdvancedFeatures,
    30  BaseType: () => BaseType,
    31  Enum: () => Enum,
    32  EnumVal: () => EnumVal,
    33  Field: () => Field,
    34  KeyValue: () => KeyValue,
    35  Object_: () => Object_,
    36  RPCCall: () => RPCCall,
    37  Schema: () => Schema,
    38  SchemaFile: () => SchemaFile,
    39  Service: () => Service,
    40  Type: () => Type
    41});
    42module.exports = __toCommonJS(reflection_exports);
    43
    44// reflection/advanced-features.ts
    45var AdvancedFeatures = /* @__PURE__ */ ((AdvancedFeatures2) => {
    46  AdvancedFeatures2["AdvancedArrayFeatures"] = "1";
    47  AdvancedFeatures2["AdvancedUnionFeatures"] = "2";
    48  AdvancedFeatures2["OptionalScalars"] = "4";
    49  AdvancedFeatures2["DefaultVectorsAndStrings"] = "8";
    50  return AdvancedFeatures2;
    51})(AdvancedFeatures || {});
    52
    53// reflection/base-type.js
    54var BaseType;
    55(function(BaseType2) {
    56  BaseType2[BaseType2["None"] = 0] = "None";
    57  BaseType2[BaseType2["UType"] = 1] = "UType";
    58  BaseType2[BaseType2["Bool"] = 2] = "Bool";
    59  BaseType2[BaseType2["Byte"] = 3] = "Byte";
    60  BaseType2[BaseType2["UByte"] = 4] = "UByte";
    61  BaseType2[BaseType2["Short"] = 5] = "Short";
    62  BaseType2[BaseType2["UShort"] = 6] = "UShort";
    63  BaseType2[BaseType2["Int"] = 7] = "Int";
    64  BaseType2[BaseType2["UInt"] = 8] = "UInt";
    65  BaseType2[BaseType2["Long"] = 9] = "Long";
    66  BaseType2[BaseType2["ULong"] = 10] = "ULong";
    67  BaseType2[BaseType2["Float"] = 11] = "Float";
    68  BaseType2[BaseType2["Double"] = 12] = "Double";
    69  BaseType2[BaseType2["String"] = 13] = "String";
    70  BaseType2[BaseType2["Vector"] = 14] = "Vector";
    71  BaseType2[BaseType2["Obj"] = 15] = "Obj";
    72  BaseType2[BaseType2["Union"] = 16] = "Union";
    73  BaseType2[BaseType2["Array"] = 17] = "Array";
    74  BaseType2[BaseType2["MaxBaseType"] = 18] = "MaxBaseType";
    75})(BaseType = BaseType || (BaseType = {}));
    76
    77// reflection/enum.js
    78var flatbuffers4 = __toESM(require("flatbuffers"), 1);
    79
    80// reflection/enum-val.js
    81var flatbuffers3 = __toESM(require("flatbuffers"), 1);
    82
    83// reflection/key-value.js
    84var flatbuffers = __toESM(require("flatbuffers"), 1);
    85var KeyValue = class {
    86  constructor() {
    87    this.bb = null;
    88    this.bb_pos = 0;
    89  }
    90  __init(i, bb) {
    91    this.bb_pos = i;
    92    this.bb = bb;
    93    return this;
    94  }
    95  static getRootAsKeyValue(bb, obj) {
    96    return (obj || new KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
    97  }
    98  static getSizePrefixedRootAsKeyValue(bb, obj) {
    99    bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
   100    return (obj || new KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   101  }
   102  key(optionalEncoding) {
   103    const offset = this.bb.__offset(this.bb_pos, 4);
   104    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   105  }
   106  value(optionalEncoding) {
   107    const offset = this.bb.__offset(this.bb_pos, 6);
   108    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   109  }
   110  static getFullyQualifiedName() {
   111    return "reflection_KeyValue";
   112  }
   113  static startKeyValue(builder) {
   114    builder.startObject(2);
   115  }
   116  static addKey(builder, keyOffset) {
   117    builder.addFieldOffset(0, keyOffset, 0);
   118  }
   119  static addValue(builder, valueOffset) {
   120    builder.addFieldOffset(1, valueOffset, 0);
   121  }
   122  static endKeyValue(builder) {
   123    const offset = builder.endObject();
   124    builder.requiredField(offset, 4);
   125    return offset;
   126  }
   127  static createKeyValue(builder, keyOffset, valueOffset) {
   128    KeyValue.startKeyValue(builder);
   129    KeyValue.addKey(builder, keyOffset);
   130    KeyValue.addValue(builder, valueOffset);
   131    return KeyValue.endKeyValue(builder);
   132  }
   133  unpack() {
   134    return new KeyValueT(this.key(), this.value());
   135  }
   136  unpackTo(_o) {
   137    _o.key = this.key();
   138    _o.value = this.value();
   139  }
   140};
   141var KeyValueT = class {
   142  constructor(key = null, value = null) {
   143    this.key = key;
   144    this.value = value;
   145  }
   146  pack(builder) {
   147    const key = this.key !== null ? builder.createString(this.key) : 0;
   148    const value = this.value !== null ? builder.createString(this.value) : 0;
   149    return KeyValue.createKeyValue(builder, key, value);
   150  }
   151};
   152
   153// reflection/type.js
   154var flatbuffers2 = __toESM(require("flatbuffers"), 1);
   155var Type = class {
   156  constructor() {
   157    this.bb = null;
   158    this.bb_pos = 0;
   159  }
   160  __init(i, bb) {
   161    this.bb_pos = i;
   162    this.bb = bb;
   163    return this;
   164  }
   165  static getRootAsType(bb, obj) {
   166    return (obj || new Type()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   167  }
   168  static getSizePrefixedRootAsType(bb, obj) {
   169    bb.setPosition(bb.position() + flatbuffers2.SIZE_PREFIX_LENGTH);
   170    return (obj || new Type()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   171  }
   172  baseType() {
   173    const offset = this.bb.__offset(this.bb_pos, 4);
   174    return offset ? this.bb.readInt8(this.bb_pos + offset) : BaseType.None;
   175  }
   176  mutate_base_type(value) {
   177    const offset = this.bb.__offset(this.bb_pos, 4);
   178    if (offset === 0) {
   179      return false;
   180    }
   181    this.bb.writeInt8(this.bb_pos + offset, value);
   182    return true;
   183  }
   184  element() {
   185    const offset = this.bb.__offset(this.bb_pos, 6);
   186    return offset ? this.bb.readInt8(this.bb_pos + offset) : BaseType.None;
   187  }
   188  mutate_element(value) {
   189    const offset = this.bb.__offset(this.bb_pos, 6);
   190    if (offset === 0) {
   191      return false;
   192    }
   193    this.bb.writeInt8(this.bb_pos + offset, value);
   194    return true;
   195  }
   196  index() {
   197    const offset = this.bb.__offset(this.bb_pos, 8);
   198    return offset ? this.bb.readInt32(this.bb_pos + offset) : -1;
   199  }
   200  mutate_index(value) {
   201    const offset = this.bb.__offset(this.bb_pos, 8);
   202    if (offset === 0) {
   203      return false;
   204    }
   205    this.bb.writeInt32(this.bb_pos + offset, value);
   206    return true;
   207  }
   208  fixedLength() {
   209    const offset = this.bb.__offset(this.bb_pos, 10);
   210    return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
   211  }
   212  mutate_fixed_length(value) {
   213    const offset = this.bb.__offset(this.bb_pos, 10);
   214    if (offset === 0) {
   215      return false;
   216    }
   217    this.bb.writeUint16(this.bb_pos + offset, value);
   218    return true;
   219  }
   220  baseSize() {
   221    const offset = this.bb.__offset(this.bb_pos, 12);
   222    return offset ? this.bb.readUint32(this.bb_pos + offset) : 4;
   223  }
   224  mutate_base_size(value) {
   225    const offset = this.bb.__offset(this.bb_pos, 12);
   226    if (offset === 0) {
   227      return false;
   228    }
   229    this.bb.writeUint32(this.bb_pos + offset, value);
   230    return true;
   231  }
   232  elementSize() {
   233    const offset = this.bb.__offset(this.bb_pos, 14);
   234    return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
   235  }
   236  mutate_element_size(value) {
   237    const offset = this.bb.__offset(this.bb_pos, 14);
   238    if (offset === 0) {
   239      return false;
   240    }
   241    this.bb.writeUint32(this.bb_pos + offset, value);
   242    return true;
   243  }
   244  static getFullyQualifiedName() {
   245    return "reflection_Type";
   246  }
   247  static startType(builder) {
   248    builder.startObject(6);
   249  }
   250  static addBaseType(builder, baseType) {
   251    builder.addFieldInt8(0, baseType, BaseType.None);
   252  }
   253  static addElement(builder, element) {
   254    builder.addFieldInt8(1, element, BaseType.None);
   255  }
   256  static addIndex(builder, index) {
   257    builder.addFieldInt32(2, index, -1);
   258  }
   259  static addFixedLength(builder, fixedLength) {
   260    builder.addFieldInt16(3, fixedLength, 0);
   261  }
   262  static addBaseSize(builder, baseSize) {
   263    builder.addFieldInt32(4, baseSize, 4);
   264  }
   265  static addElementSize(builder, elementSize) {
   266    builder.addFieldInt32(5, elementSize, 0);
   267  }
   268  static endType(builder) {
   269    const offset = builder.endObject();
   270    return offset;
   271  }
   272  static createType(builder, baseType, element, index, fixedLength, baseSize, elementSize) {
   273    Type.startType(builder);
   274    Type.addBaseType(builder, baseType);
   275    Type.addElement(builder, element);
   276    Type.addIndex(builder, index);
   277    Type.addFixedLength(builder, fixedLength);
   278    Type.addBaseSize(builder, baseSize);
   279    Type.addElementSize(builder, elementSize);
   280    return Type.endType(builder);
   281  }
   282  unpack() {
   283    return new TypeT(this.baseType(), this.element(), this.index(), this.fixedLength(), this.baseSize(), this.elementSize());
   284  }
   285  unpackTo(_o) {
   286    _o.baseType = this.baseType();
   287    _o.element = this.element();
   288    _o.index = this.index();
   289    _o.fixedLength = this.fixedLength();
   290    _o.baseSize = this.baseSize();
   291    _o.elementSize = this.elementSize();
   292  }
   293};
   294var TypeT = class {
   295  constructor(baseType = BaseType.None, element = BaseType.None, index = -1, fixedLength = 0, baseSize = 4, elementSize = 0) {
   296    this.baseType = baseType;
   297    this.element = element;
   298    this.index = index;
   299    this.fixedLength = fixedLength;
   300    this.baseSize = baseSize;
   301    this.elementSize = elementSize;
   302  }
   303  pack(builder) {
   304    return Type.createType(builder, this.baseType, this.element, this.index, this.fixedLength, this.baseSize, this.elementSize);
   305  }
   306};
   307
   308// reflection/enum-val.js
   309var EnumVal = class {
   310  constructor() {
   311    this.bb = null;
   312    this.bb_pos = 0;
   313  }
   314  __init(i, bb) {
   315    this.bb_pos = i;
   316    this.bb = bb;
   317    return this;
   318  }
   319  static getRootAsEnumVal(bb, obj) {
   320    return (obj || new EnumVal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   321  }
   322  static getSizePrefixedRootAsEnumVal(bb, obj) {
   323    bb.setPosition(bb.position() + flatbuffers3.SIZE_PREFIX_LENGTH);
   324    return (obj || new EnumVal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   325  }
   326  name(optionalEncoding) {
   327    const offset = this.bb.__offset(this.bb_pos, 4);
   328    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   329  }
   330  value() {
   331    const offset = this.bb.__offset(this.bb_pos, 6);
   332    return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
   333  }
   334  mutate_value(value) {
   335    const offset = this.bb.__offset(this.bb_pos, 6);
   336    if (offset === 0) {
   337      return false;
   338    }
   339    this.bb.writeInt64(this.bb_pos + offset, value);
   340    return true;
   341  }
   342  unionType(obj) {
   343    const offset = this.bb.__offset(this.bb_pos, 10);
   344    return offset ? (obj || new Type()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
   345  }
   346  documentation(index, optionalEncoding) {
   347    const offset = this.bb.__offset(this.bb_pos, 12);
   348    return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
   349  }
   350  documentationLength() {
   351    const offset = this.bb.__offset(this.bb_pos, 12);
   352    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   353  }
   354  attributes(index, obj) {
   355    const offset = this.bb.__offset(this.bb_pos, 14);
   356    return offset ? (obj || new KeyValue()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
   357  }
   358  attributesLength() {
   359    const offset = this.bb.__offset(this.bb_pos, 14);
   360    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   361  }
   362  static getFullyQualifiedName() {
   363    return "reflection_EnumVal";
   364  }
   365  static startEnumVal(builder) {
   366    builder.startObject(6);
   367  }
   368  static addName(builder, nameOffset) {
   369    builder.addFieldOffset(0, nameOffset, 0);
   370  }
   371  static addValue(builder, value) {
   372    builder.addFieldInt64(1, value, BigInt("0"));
   373  }
   374  static addUnionType(builder, unionTypeOffset) {
   375    builder.addFieldOffset(3, unionTypeOffset, 0);
   376  }
   377  static addDocumentation(builder, documentationOffset) {
   378    builder.addFieldOffset(4, documentationOffset, 0);
   379  }
   380  static createDocumentationVector(builder, data) {
   381    builder.startVector(4, data.length, 4);
   382    for (let i = data.length - 1; i >= 0; i--) {
   383      builder.addOffset(data[i]);
   384    }
   385    return builder.endVector();
   386  }
   387  static startDocumentationVector(builder, numElems) {
   388    builder.startVector(4, numElems, 4);
   389  }
   390  static addAttributes(builder, attributesOffset) {
   391    builder.addFieldOffset(5, attributesOffset, 0);
   392  }
   393  static createAttributesVector(builder, data) {
   394    builder.startVector(4, data.length, 4);
   395    for (let i = data.length - 1; i >= 0; i--) {
   396      builder.addOffset(data[i]);
   397    }
   398    return builder.endVector();
   399  }
   400  static startAttributesVector(builder, numElems) {
   401    builder.startVector(4, numElems, 4);
   402  }
   403  static endEnumVal(builder) {
   404    const offset = builder.endObject();
   405    builder.requiredField(offset, 4);
   406    return offset;
   407  }
   408  unpack() {
   409    return new EnumValT(this.name(), this.value(), this.unionType() !== null ? this.unionType().unpack() : null, this.bb.createScalarList(this.documentation.bind(this), this.documentationLength()), this.bb.createObjList(this.attributes.bind(this), this.attributesLength()));
   410  }
   411  unpackTo(_o) {
   412    _o.name = this.name();
   413    _o.value = this.value();
   414    _o.unionType = this.unionType() !== null ? this.unionType().unpack() : null;
   415    _o.documentation = this.bb.createScalarList(this.documentation.bind(this), this.documentationLength());
   416    _o.attributes = this.bb.createObjList(this.attributes.bind(this), this.attributesLength());
   417  }
   418};
   419var EnumValT = class {
   420  constructor(name = null, value = BigInt("0"), unionType = null, documentation = [], attributes = []) {
   421    this.name = name;
   422    this.value = value;
   423    this.unionType = unionType;
   424    this.documentation = documentation;
   425    this.attributes = attributes;
   426  }
   427  pack(builder) {
   428    const name = this.name !== null ? builder.createString(this.name) : 0;
   429    const unionType = this.unionType !== null ? this.unionType.pack(builder) : 0;
   430    const documentation = EnumVal.createDocumentationVector(builder, builder.createObjectOffsetList(this.documentation));
   431    const attributes = EnumVal.createAttributesVector(builder, builder.createObjectOffsetList(this.attributes));
   432    EnumVal.startEnumVal(builder);
   433    EnumVal.addName(builder, name);
   434    EnumVal.addValue(builder, this.value);
   435    EnumVal.addUnionType(builder, unionType);
   436    EnumVal.addDocumentation(builder, documentation);
   437    EnumVal.addAttributes(builder, attributes);
   438    return EnumVal.endEnumVal(builder);
   439  }
   440};
   441
   442// reflection/enum.js
   443var Enum = class {
   444  constructor() {
   445    this.bb = null;
   446    this.bb_pos = 0;
   447  }
   448  __init(i, bb) {
   449    this.bb_pos = i;
   450    this.bb = bb;
   451    return this;
   452  }
   453  static getRootAsEnum(bb, obj) {
   454    return (obj || new Enum()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   455  }
   456  static getSizePrefixedRootAsEnum(bb, obj) {
   457    bb.setPosition(bb.position() + flatbuffers4.SIZE_PREFIX_LENGTH);
   458    return (obj || new Enum()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   459  }
   460  name(optionalEncoding) {
   461    const offset = this.bb.__offset(this.bb_pos, 4);
   462    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   463  }
   464  values(index, obj) {
   465    const offset = this.bb.__offset(this.bb_pos, 6);
   466    return offset ? (obj || new EnumVal()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
   467  }
   468  valuesLength() {
   469    const offset = this.bb.__offset(this.bb_pos, 6);
   470    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   471  }
   472  isUnion() {
   473    const offset = this.bb.__offset(this.bb_pos, 8);
   474    return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
   475  }
   476  mutate_is_union(value) {
   477    const offset = this.bb.__offset(this.bb_pos, 8);
   478    if (offset === 0) {
   479      return false;
   480    }
   481    this.bb.writeInt8(this.bb_pos + offset, +value);
   482    return true;
   483  }
   484  underlyingType(obj) {
   485    const offset = this.bb.__offset(this.bb_pos, 10);
   486    return offset ? (obj || new Type()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
   487  }
   488  attributes(index, obj) {
   489    const offset = this.bb.__offset(this.bb_pos, 12);
   490    return offset ? (obj || new KeyValue()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
   491  }
   492  attributesLength() {
   493    const offset = this.bb.__offset(this.bb_pos, 12);
   494    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   495  }
   496  documentation(index, optionalEncoding) {
   497    const offset = this.bb.__offset(this.bb_pos, 14);
   498    return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
   499  }
   500  documentationLength() {
   501    const offset = this.bb.__offset(this.bb_pos, 14);
   502    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   503  }
   504  declarationFile(optionalEncoding) {
   505    const offset = this.bb.__offset(this.bb_pos, 16);
   506    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   507  }
   508  static getFullyQualifiedName() {
   509    return "reflection_Enum";
   510  }
   511  static startEnum(builder) {
   512    builder.startObject(7);
   513  }
   514  static addName(builder, nameOffset) {
   515    builder.addFieldOffset(0, nameOffset, 0);
   516  }
   517  static addValues(builder, valuesOffset) {
   518    builder.addFieldOffset(1, valuesOffset, 0);
   519  }
   520  static createValuesVector(builder, data) {
   521    builder.startVector(4, data.length, 4);
   522    for (let i = data.length - 1; i >= 0; i--) {
   523      builder.addOffset(data[i]);
   524    }
   525    return builder.endVector();
   526  }
   527  static startValuesVector(builder, numElems) {
   528    builder.startVector(4, numElems, 4);
   529  }
   530  static addIsUnion(builder, isUnion) {
   531    builder.addFieldInt8(2, +isUnion, 0);
   532  }
   533  static addUnderlyingType(builder, underlyingTypeOffset) {
   534    builder.addFieldOffset(3, underlyingTypeOffset, 0);
   535  }
   536  static addAttributes(builder, attributesOffset) {
   537    builder.addFieldOffset(4, attributesOffset, 0);
   538  }
   539  static createAttributesVector(builder, data) {
   540    builder.startVector(4, data.length, 4);
   541    for (let i = data.length - 1; i >= 0; i--) {
   542      builder.addOffset(data[i]);
   543    }
   544    return builder.endVector();
   545  }
   546  static startAttributesVector(builder, numElems) {
   547    builder.startVector(4, numElems, 4);
   548  }
   549  static addDocumentation(builder, documentationOffset) {
   550    builder.addFieldOffset(5, documentationOffset, 0);
   551  }
   552  static createDocumentationVector(builder, data) {
   553    builder.startVector(4, data.length, 4);
   554    for (let i = data.length - 1; i >= 0; i--) {
   555      builder.addOffset(data[i]);
   556    }
   557    return builder.endVector();
   558  }
   559  static startDocumentationVector(builder, numElems) {
   560    builder.startVector(4, numElems, 4);
   561  }
   562  static addDeclarationFile(builder, declarationFileOffset) {
   563    builder.addFieldOffset(6, declarationFileOffset, 0);
   564  }
   565  static endEnum(builder) {
   566    const offset = builder.endObject();
   567    builder.requiredField(offset, 4);
   568    builder.requiredField(offset, 6);
   569    builder.requiredField(offset, 10);
   570    return offset;
   571  }
   572  unpack() {
   573    return new EnumT(this.name(), this.bb.createObjList(this.values.bind(this), this.valuesLength()), this.isUnion(), this.underlyingType() !== null ? this.underlyingType().unpack() : null, this.bb.createObjList(this.attributes.bind(this), this.attributesLength()), this.bb.createScalarList(this.documentation.bind(this), this.documentationLength()), this.declarationFile());
   574  }
   575  unpackTo(_o) {
   576    _o.name = this.name();
   577    _o.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
   578    _o.isUnion = this.isUnion();
   579    _o.underlyingType = this.underlyingType() !== null ? this.underlyingType().unpack() : null;
   580    _o.attributes = this.bb.createObjList(this.attributes.bind(this), this.attributesLength());
   581    _o.documentation = this.bb.createScalarList(this.documentation.bind(this), this.documentationLength());
   582    _o.declarationFile = this.declarationFile();
   583  }
   584};
   585var EnumT = class {
   586  constructor(name = null, values = [], isUnion = false, underlyingType = null, attributes = [], documentation = [], declarationFile = null) {
   587    this.name = name;
   588    this.values = values;
   589    this.isUnion = isUnion;
   590    this.underlyingType = underlyingType;
   591    this.attributes = attributes;
   592    this.documentation = documentation;
   593    this.declarationFile = declarationFile;
   594  }
   595  pack(builder) {
   596    const name = this.name !== null ? builder.createString(this.name) : 0;
   597    const values = Enum.createValuesVector(builder, builder.createObjectOffsetList(this.values));
   598    const underlyingType = this.underlyingType !== null ? this.underlyingType.pack(builder) : 0;
   599    const attributes = Enum.createAttributesVector(builder, builder.createObjectOffsetList(this.attributes));
   600    const documentation = Enum.createDocumentationVector(builder, builder.createObjectOffsetList(this.documentation));
   601    const declarationFile = this.declarationFile !== null ? builder.createString(this.declarationFile) : 0;
   602    Enum.startEnum(builder);
   603    Enum.addName(builder, name);
   604    Enum.addValues(builder, values);
   605    Enum.addIsUnion(builder, this.isUnion);
   606    Enum.addUnderlyingType(builder, underlyingType);
   607    Enum.addAttributes(builder, attributes);
   608    Enum.addDocumentation(builder, documentation);
   609    Enum.addDeclarationFile(builder, declarationFile);
   610    return Enum.endEnum(builder);
   611  }
   612};
   613
   614// reflection/field.js
   615var flatbuffers5 = __toESM(require("flatbuffers"), 1);
   616var Field = class {
   617  constructor() {
   618    this.bb = null;
   619    this.bb_pos = 0;
   620  }
   621  __init(i, bb) {
   622    this.bb_pos = i;
   623    this.bb = bb;
   624    return this;
   625  }
   626  static getRootAsField(bb, obj) {
   627    return (obj || new Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   628  }
   629  static getSizePrefixedRootAsField(bb, obj) {
   630    bb.setPosition(bb.position() + flatbuffers5.SIZE_PREFIX_LENGTH);
   631    return (obj || new Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   632  }
   633  name(optionalEncoding) {
   634    const offset = this.bb.__offset(this.bb_pos, 4);
   635    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   636  }
   637  type(obj) {
   638    const offset = this.bb.__offset(this.bb_pos, 6);
   639    return offset ? (obj || new Type()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
   640  }
   641  id() {
   642    const offset = this.bb.__offset(this.bb_pos, 8);
   643    return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
   644  }
   645  mutate_id(value) {
   646    const offset = this.bb.__offset(this.bb_pos, 8);
   647    if (offset === 0) {
   648      return false;
   649    }
   650    this.bb.writeUint16(this.bb_pos + offset, value);
   651    return true;
   652  }
   653  offset() {
   654    const offset = this.bb.__offset(this.bb_pos, 10);
   655    return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
   656  }
   657  mutate_offset(value) {
   658    const offset = this.bb.__offset(this.bb_pos, 10);
   659    if (offset === 0) {
   660      return false;
   661    }
   662    this.bb.writeUint16(this.bb_pos + offset, value);
   663    return true;
   664  }
   665  defaultInteger() {
   666    const offset = this.bb.__offset(this.bb_pos, 12);
   667    return offset ? this.bb.readInt64(this.bb_pos + offset) : BigInt("0");
   668  }
   669  mutate_default_integer(value) {
   670    const offset = this.bb.__offset(this.bb_pos, 12);
   671    if (offset === 0) {
   672      return false;
   673    }
   674    this.bb.writeInt64(this.bb_pos + offset, value);
   675    return true;
   676  }
   677  defaultReal() {
   678    const offset = this.bb.__offset(this.bb_pos, 14);
   679    return offset ? this.bb.readFloat64(this.bb_pos + offset) : 0;
   680  }
   681  mutate_default_real(value) {
   682    const offset = this.bb.__offset(this.bb_pos, 14);
   683    if (offset === 0) {
   684      return false;
   685    }
   686    this.bb.writeFloat64(this.bb_pos + offset, value);
   687    return true;
   688  }
   689  deprecated() {
   690    const offset = this.bb.__offset(this.bb_pos, 16);
   691    return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
   692  }
   693  mutate_deprecated(value) {
   694    const offset = this.bb.__offset(this.bb_pos, 16);
   695    if (offset === 0) {
   696      return false;
   697    }
   698    this.bb.writeInt8(this.bb_pos + offset, +value);
   699    return true;
   700  }
   701  required() {
   702    const offset = this.bb.__offset(this.bb_pos, 18);
   703    return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
   704  }
   705  mutate_required(value) {
   706    const offset = this.bb.__offset(this.bb_pos, 18);
   707    if (offset === 0) {
   708      return false;
   709    }
   710    this.bb.writeInt8(this.bb_pos + offset, +value);
   711    return true;
   712  }
   713  key() {
   714    const offset = this.bb.__offset(this.bb_pos, 20);
   715    return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
   716  }
   717  mutate_key(value) {
   718    const offset = this.bb.__offset(this.bb_pos, 20);
   719    if (offset === 0) {
   720      return false;
   721    }
   722    this.bb.writeInt8(this.bb_pos + offset, +value);
   723    return true;
   724  }
   725  attributes(index, obj) {
   726    const offset = this.bb.__offset(this.bb_pos, 22);
   727    return offset ? (obj || new KeyValue()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
   728  }
   729  attributesLength() {
   730    const offset = this.bb.__offset(this.bb_pos, 22);
   731    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   732  }
   733  documentation(index, optionalEncoding) {
   734    const offset = this.bb.__offset(this.bb_pos, 24);
   735    return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
   736  }
   737  documentationLength() {
   738    const offset = this.bb.__offset(this.bb_pos, 24);
   739    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   740  }
   741  optional() {
   742    const offset = this.bb.__offset(this.bb_pos, 26);
   743    return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
   744  }
   745  mutate_optional(value) {
   746    const offset = this.bb.__offset(this.bb_pos, 26);
   747    if (offset === 0) {
   748      return false;
   749    }
   750    this.bb.writeInt8(this.bb_pos + offset, +value);
   751    return true;
   752  }
   753  padding() {
   754    const offset = this.bb.__offset(this.bb_pos, 28);
   755    return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
   756  }
   757  mutate_padding(value) {
   758    const offset = this.bb.__offset(this.bb_pos, 28);
   759    if (offset === 0) {
   760      return false;
   761    }
   762    this.bb.writeUint16(this.bb_pos + offset, value);
   763    return true;
   764  }
   765  static getFullyQualifiedName() {
   766    return "reflection_Field";
   767  }
   768  static startField(builder) {
   769    builder.startObject(13);
   770  }
   771  static addName(builder, nameOffset) {
   772    builder.addFieldOffset(0, nameOffset, 0);
   773  }
   774  static addType(builder, typeOffset) {
   775    builder.addFieldOffset(1, typeOffset, 0);
   776  }
   777  static addId(builder, id) {
   778    builder.addFieldInt16(2, id, 0);
   779  }
   780  static addOffset(builder, offset) {
   781    builder.addFieldInt16(3, offset, 0);
   782  }
   783  static addDefaultInteger(builder, defaultInteger) {
   784    builder.addFieldInt64(4, defaultInteger, BigInt("0"));
   785  }
   786  static addDefaultReal(builder, defaultReal) {
   787    builder.addFieldFloat64(5, defaultReal, 0);
   788  }
   789  static addDeprecated(builder, deprecated) {
   790    builder.addFieldInt8(6, +deprecated, 0);
   791  }
   792  static addRequired(builder, required) {
   793    builder.addFieldInt8(7, +required, 0);
   794  }
   795  static addKey(builder, key) {
   796    builder.addFieldInt8(8, +key, 0);
   797  }
   798  static addAttributes(builder, attributesOffset) {
   799    builder.addFieldOffset(9, attributesOffset, 0);
   800  }
   801  static createAttributesVector(builder, data) {
   802    builder.startVector(4, data.length, 4);
   803    for (let i = data.length - 1; i >= 0; i--) {
   804      builder.addOffset(data[i]);
   805    }
   806    return builder.endVector();
   807  }
   808  static startAttributesVector(builder, numElems) {
   809    builder.startVector(4, numElems, 4);
   810  }
   811  static addDocumentation(builder, documentationOffset) {
   812    builder.addFieldOffset(10, documentationOffset, 0);
   813  }
   814  static createDocumentationVector(builder, data) {
   815    builder.startVector(4, data.length, 4);
   816    for (let i = data.length - 1; i >= 0; i--) {
   817      builder.addOffset(data[i]);
   818    }
   819    return builder.endVector();
   820  }
   821  static startDocumentationVector(builder, numElems) {
   822    builder.startVector(4, numElems, 4);
   823  }
   824  static addOptional(builder, optional) {
   825    builder.addFieldInt8(11, +optional, 0);
   826  }
   827  static addPadding(builder, padding) {
   828    builder.addFieldInt16(12, padding, 0);
   829  }
   830  static endField(builder) {
   831    const offset = builder.endObject();
   832    builder.requiredField(offset, 4);
   833    builder.requiredField(offset, 6);
   834    return offset;
   835  }
   836  unpack() {
   837    return new FieldT(this.name(), this.type() !== null ? this.type().unpack() : null, this.id(), this.offset(), this.defaultInteger(), this.defaultReal(), this.deprecated(), this.required(), this.key(), this.bb.createObjList(this.attributes.bind(this), this.attributesLength()), this.bb.createScalarList(this.documentation.bind(this), this.documentationLength()), this.optional(), this.padding());
   838  }
   839  unpackTo(_o) {
   840    _o.name = this.name();
   841    _o.type = this.type() !== null ? this.type().unpack() : null;
   842    _o.id = this.id();
   843    _o.offset = this.offset();
   844    _o.defaultInteger = this.defaultInteger();
   845    _o.defaultReal = this.defaultReal();
   846    _o.deprecated = this.deprecated();
   847    _o.required = this.required();
   848    _o.key = this.key();
   849    _o.attributes = this.bb.createObjList(this.attributes.bind(this), this.attributesLength());
   850    _o.documentation = this.bb.createScalarList(this.documentation.bind(this), this.documentationLength());
   851    _o.optional = this.optional();
   852    _o.padding = this.padding();
   853  }
   854};
   855var FieldT = class {
   856  constructor(name = null, type = null, id = 0, offset = 0, defaultInteger = BigInt("0"), defaultReal = 0, deprecated = false, required = false, key = false, attributes = [], documentation = [], optional = false, padding = 0) {
   857    this.name = name;
   858    this.type = type;
   859    this.id = id;
   860    this.offset = offset;
   861    this.defaultInteger = defaultInteger;
   862    this.defaultReal = defaultReal;
   863    this.deprecated = deprecated;
   864    this.required = required;
   865    this.key = key;
   866    this.attributes = attributes;
   867    this.documentation = documentation;
   868    this.optional = optional;
   869    this.padding = padding;
   870  }
   871  pack(builder) {
   872    const name = this.name !== null ? builder.createString(this.name) : 0;
   873    const type = this.type !== null ? this.type.pack(builder) : 0;
   874    const attributes = Field.createAttributesVector(builder, builder.createObjectOffsetList(this.attributes));
   875    const documentation = Field.createDocumentationVector(builder, builder.createObjectOffsetList(this.documentation));
   876    Field.startField(builder);
   877    Field.addName(builder, name);
   878    Field.addType(builder, type);
   879    Field.addId(builder, this.id);
   880    Field.addOffset(builder, this.offset);
   881    Field.addDefaultInteger(builder, this.defaultInteger);
   882    Field.addDefaultReal(builder, this.defaultReal);
   883    Field.addDeprecated(builder, this.deprecated);
   884    Field.addRequired(builder, this.required);
   885    Field.addKey(builder, this.key);
   886    Field.addAttributes(builder, attributes);
   887    Field.addDocumentation(builder, documentation);
   888    Field.addOptional(builder, this.optional);
   889    Field.addPadding(builder, this.padding);
   890    return Field.endField(builder);
   891  }
   892};
   893
   894// reflection/object.js
   895var flatbuffers6 = __toESM(require("flatbuffers"), 1);
   896var Object_ = class {
   897  constructor() {
   898    this.bb = null;
   899    this.bb_pos = 0;
   900  }
   901  __init(i, bb) {
   902    this.bb_pos = i;
   903    this.bb = bb;
   904    return this;
   905  }
   906  static getRootAsObject(bb, obj) {
   907    return (obj || new Object_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   908  }
   909  static getSizePrefixedRootAsObject(bb, obj) {
   910    bb.setPosition(bb.position() + flatbuffers6.SIZE_PREFIX_LENGTH);
   911    return (obj || new Object_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
   912  }
   913  name(optionalEncoding) {
   914    const offset = this.bb.__offset(this.bb_pos, 4);
   915    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   916  }
   917  fields(index, obj) {
   918    const offset = this.bb.__offset(this.bb_pos, 6);
   919    return offset ? (obj || new Field()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
   920  }
   921  fieldsLength() {
   922    const offset = this.bb.__offset(this.bb_pos, 6);
   923    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   924  }
   925  isStruct() {
   926    const offset = this.bb.__offset(this.bb_pos, 8);
   927    return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
   928  }
   929  mutate_is_struct(value) {
   930    const offset = this.bb.__offset(this.bb_pos, 8);
   931    if (offset === 0) {
   932      return false;
   933    }
   934    this.bb.writeInt8(this.bb_pos + offset, +value);
   935    return true;
   936  }
   937  minalign() {
   938    const offset = this.bb.__offset(this.bb_pos, 10);
   939    return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
   940  }
   941  mutate_minalign(value) {
   942    const offset = this.bb.__offset(this.bb_pos, 10);
   943    if (offset === 0) {
   944      return false;
   945    }
   946    this.bb.writeInt32(this.bb_pos + offset, value);
   947    return true;
   948  }
   949  bytesize() {
   950    const offset = this.bb.__offset(this.bb_pos, 12);
   951    return offset ? this.bb.readInt32(this.bb_pos + offset) : 0;
   952  }
   953  mutate_bytesize(value) {
   954    const offset = this.bb.__offset(this.bb_pos, 12);
   955    if (offset === 0) {
   956      return false;
   957    }
   958    this.bb.writeInt32(this.bb_pos + offset, value);
   959    return true;
   960  }
   961  attributes(index, obj) {
   962    const offset = this.bb.__offset(this.bb_pos, 14);
   963    return offset ? (obj || new KeyValue()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
   964  }
   965  attributesLength() {
   966    const offset = this.bb.__offset(this.bb_pos, 14);
   967    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   968  }
   969  documentation(index, optionalEncoding) {
   970    const offset = this.bb.__offset(this.bb_pos, 16);
   971    return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
   972  }
   973  documentationLength() {
   974    const offset = this.bb.__offset(this.bb_pos, 16);
   975    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
   976  }
   977  declarationFile(optionalEncoding) {
   978    const offset = this.bb.__offset(this.bb_pos, 18);
   979    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
   980  }
   981  static getFullyQualifiedName() {
   982    return "reflection_Object";
   983  }
   984  static startObject(builder) {
   985    builder.startObject(8);
   986  }
   987  static addName(builder, nameOffset) {
   988    builder.addFieldOffset(0, nameOffset, 0);
   989  }
   990  static addFields(builder, fieldsOffset) {
   991    builder.addFieldOffset(1, fieldsOffset, 0);
   992  }
   993  static createFieldsVector(builder, data) {
   994    builder.startVector(4, data.length, 4);
   995    for (let i = data.length - 1; i >= 0; i--) {
   996      builder.addOffset(data[i]);
   997    }
   998    return builder.endVector();
   999  }
  1000  static startFieldsVector(builder, numElems) {
  1001    builder.startVector(4, numElems, 4);
  1002  }
  1003  static addIsStruct(builder, isStruct) {
  1004    builder.addFieldInt8(2, +isStruct, 0);
  1005  }
  1006  static addMinalign(builder, minalign) {
  1007    builder.addFieldInt32(3, minalign, 0);
  1008  }
  1009  static addBytesize(builder, bytesize) {
  1010    builder.addFieldInt32(4, bytesize, 0);
  1011  }
  1012  static addAttributes(builder, attributesOffset) {
  1013    builder.addFieldOffset(5, attributesOffset, 0);
  1014  }
  1015  static createAttributesVector(builder, data) {
  1016    builder.startVector(4, data.length, 4);
  1017    for (let i = data.length - 1; i >= 0; i--) {
  1018      builder.addOffset(data[i]);
  1019    }
  1020    return builder.endVector();
  1021  }
  1022  static startAttributesVector(builder, numElems) {
  1023    builder.startVector(4, numElems, 4);
  1024  }
  1025  static addDocumentation(builder, documentationOffset) {
  1026    builder.addFieldOffset(6, documentationOffset, 0);
  1027  }
  1028  static createDocumentationVector(builder, data) {
  1029    builder.startVector(4, data.length, 4);
  1030    for (let i = data.length - 1; i >= 0; i--) {
  1031      builder.addOffset(data[i]);
  1032    }
  1033    return builder.endVector();
  1034  }
  1035  static startDocumentationVector(builder, numElems) {
  1036    builder.startVector(4, numElems, 4);
  1037  }
  1038  static addDeclarationFile(builder, declarationFileOffset) {
  1039    builder.addFieldOffset(7, declarationFileOffset, 0);
  1040  }
  1041  static endObject(builder) {
  1042    const offset = builder.endObject();
  1043    builder.requiredField(offset, 4);
  1044    builder.requiredField(offset, 6);
  1045    return offset;
  1046  }
  1047  static createObject(builder, nameOffset, fieldsOffset, isStruct, minalign, bytesize, attributesOffset, documentationOffset, declarationFileOffset) {
  1048    Object_.startObject(builder);
  1049    Object_.addName(builder, nameOffset);
  1050    Object_.addFields(builder, fieldsOffset);
  1051    Object_.addIsStruct(builder, isStruct);
  1052    Object_.addMinalign(builder, minalign);
  1053    Object_.addBytesize(builder, bytesize);
  1054    Object_.addAttributes(builder, attributesOffset);
  1055    Object_.addDocumentation(builder, documentationOffset);
  1056    Object_.addDeclarationFile(builder, declarationFileOffset);
  1057    return Object_.endObject(builder);
  1058  }
  1059  unpack() {
  1060    return new Object_T(this.name(), this.bb.createObjList(this.fields.bind(this), this.fieldsLength()), this.isStruct(), this.minalign(), this.bytesize(), this.bb.createObjList(this.attributes.bind(this), this.attributesLength()), this.bb.createScalarList(this.documentation.bind(this), this.documentationLength()), this.declarationFile());
  1061  }
  1062  unpackTo(_o) {
  1063    _o.name = this.name();
  1064    _o.fields = this.bb.createObjList(this.fields.bind(this), this.fieldsLength());
  1065    _o.isStruct = this.isStruct();
  1066    _o.minalign = this.minalign();
  1067    _o.bytesize = this.bytesize();
  1068    _o.attributes = this.bb.createObjList(this.attributes.bind(this), this.attributesLength());
  1069    _o.documentation = this.bb.createScalarList(this.documentation.bind(this), this.documentationLength());
  1070    _o.declarationFile = this.declarationFile();
  1071  }
  1072};
  1073var Object_T = class {
  1074  constructor(name = null, fields = [], isStruct = false, minalign = 0, bytesize = 0, attributes = [], documentation = [], declarationFile = null) {
  1075    this.name = name;
  1076    this.fields = fields;
  1077    this.isStruct = isStruct;
  1078    this.minalign = minalign;
  1079    this.bytesize = bytesize;
  1080    this.attributes = attributes;
  1081    this.documentation = documentation;
  1082    this.declarationFile = declarationFile;
  1083  }
  1084  pack(builder) {
  1085    const name = this.name !== null ? builder.createString(this.name) : 0;
  1086    const fields = Object_.createFieldsVector(builder, builder.createObjectOffsetList(this.fields));
  1087    const attributes = Object_.createAttributesVector(builder, builder.createObjectOffsetList(this.attributes));
  1088    const documentation = Object_.createDocumentationVector(builder, builder.createObjectOffsetList(this.documentation));
  1089    const declarationFile = this.declarationFile !== null ? builder.createString(this.declarationFile) : 0;
  1090    return Object_.createObject(builder, name, fields, this.isStruct, this.minalign, this.bytesize, attributes, documentation, declarationFile);
  1091  }
  1092};
  1093
  1094// reflection/rpccall.js
  1095var flatbuffers7 = __toESM(require("flatbuffers"), 1);
  1096var RPCCall = class {
  1097  constructor() {
  1098    this.bb = null;
  1099    this.bb_pos = 0;
  1100  }
  1101  __init(i, bb) {
  1102    this.bb_pos = i;
  1103    this.bb = bb;
  1104    return this;
  1105  }
  1106  static getRootAsRPCCall(bb, obj) {
  1107    return (obj || new RPCCall()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1108  }
  1109  static getSizePrefixedRootAsRPCCall(bb, obj) {
  1110    bb.setPosition(bb.position() + flatbuffers7.SIZE_PREFIX_LENGTH);
  1111    return (obj || new RPCCall()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1112  }
  1113  name(optionalEncoding) {
  1114    const offset = this.bb.__offset(this.bb_pos, 4);
  1115    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
  1116  }
  1117  request(obj) {
  1118    const offset = this.bb.__offset(this.bb_pos, 6);
  1119    return offset ? (obj || new Object_()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
  1120  }
  1121  response(obj) {
  1122    const offset = this.bb.__offset(this.bb_pos, 8);
  1123    return offset ? (obj || new Object_()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
  1124  }
  1125  attributes(index, obj) {
  1126    const offset = this.bb.__offset(this.bb_pos, 10);
  1127    return offset ? (obj || new KeyValue()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
  1128  }
  1129  attributesLength() {
  1130    const offset = this.bb.__offset(this.bb_pos, 10);
  1131    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1132  }
  1133  documentation(index, optionalEncoding) {
  1134    const offset = this.bb.__offset(this.bb_pos, 12);
  1135    return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
  1136  }
  1137  documentationLength() {
  1138    const offset = this.bb.__offset(this.bb_pos, 12);
  1139    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1140  }
  1141  static getFullyQualifiedName() {
  1142    return "reflection_RPCCall";
  1143  }
  1144  static startRPCCall(builder) {
  1145    builder.startObject(5);
  1146  }
  1147  static addName(builder, nameOffset) {
  1148    builder.addFieldOffset(0, nameOffset, 0);
  1149  }
  1150  static addRequest(builder, requestOffset) {
  1151    builder.addFieldOffset(1, requestOffset, 0);
  1152  }
  1153  static addResponse(builder, responseOffset) {
  1154    builder.addFieldOffset(2, responseOffset, 0);
  1155  }
  1156  static addAttributes(builder, attributesOffset) {
  1157    builder.addFieldOffset(3, attributesOffset, 0);
  1158  }
  1159  static createAttributesVector(builder, data) {
  1160    builder.startVector(4, data.length, 4);
  1161    for (let i = data.length - 1; i >= 0; i--) {
  1162      builder.addOffset(data[i]);
  1163    }
  1164    return builder.endVector();
  1165  }
  1166  static startAttributesVector(builder, numElems) {
  1167    builder.startVector(4, numElems, 4);
  1168  }
  1169  static addDocumentation(builder, documentationOffset) {
  1170    builder.addFieldOffset(4, documentationOffset, 0);
  1171  }
  1172  static createDocumentationVector(builder, data) {
  1173    builder.startVector(4, data.length, 4);
  1174    for (let i = data.length - 1; i >= 0; i--) {
  1175      builder.addOffset(data[i]);
  1176    }
  1177    return builder.endVector();
  1178  }
  1179  static startDocumentationVector(builder, numElems) {
  1180    builder.startVector(4, numElems, 4);
  1181  }
  1182  static endRPCCall(builder) {
  1183    const offset = builder.endObject();
  1184    builder.requiredField(offset, 4);
  1185    builder.requiredField(offset, 6);
  1186    builder.requiredField(offset, 8);
  1187    return offset;
  1188  }
  1189  unpack() {
  1190    return new RPCCallT(this.name(), this.request() !== null ? this.request().unpack() : null, this.response() !== null ? this.response().unpack() : null, this.bb.createObjList(this.attributes.bind(this), this.attributesLength()), this.bb.createScalarList(this.documentation.bind(this), this.documentationLength()));
  1191  }
  1192  unpackTo(_o) {
  1193    _o.name = this.name();
  1194    _o.request = this.request() !== null ? this.request().unpack() : null;
  1195    _o.response = this.response() !== null ? this.response().unpack() : null;
  1196    _o.attributes = this.bb.createObjList(this.attributes.bind(this), this.attributesLength());
  1197    _o.documentation = this.bb.createScalarList(this.documentation.bind(this), this.documentationLength());
  1198  }
  1199};
  1200var RPCCallT = class {
  1201  constructor(name = null, request = null, response = null, attributes = [], documentation = []) {
  1202    this.name = name;
  1203    this.request = request;
  1204    this.response = response;
  1205    this.attributes = attributes;
  1206    this.documentation = documentation;
  1207  }
  1208  pack(builder) {
  1209    const name = this.name !== null ? builder.createString(this.name) : 0;
  1210    const request = this.request !== null ? this.request.pack(builder) : 0;
  1211    const response = this.response !== null ? this.response.pack(builder) : 0;
  1212    const attributes = RPCCall.createAttributesVector(builder, builder.createObjectOffsetList(this.attributes));
  1213    const documentation = RPCCall.createDocumentationVector(builder, builder.createObjectOffsetList(this.documentation));
  1214    RPCCall.startRPCCall(builder);
  1215    RPCCall.addName(builder, name);
  1216    RPCCall.addRequest(builder, request);
  1217    RPCCall.addResponse(builder, response);
  1218    RPCCall.addAttributes(builder, attributes);
  1219    RPCCall.addDocumentation(builder, documentation);
  1220    return RPCCall.endRPCCall(builder);
  1221  }
  1222};
  1223
  1224// reflection/schema.js
  1225var flatbuffers10 = __toESM(require("flatbuffers"), 1);
  1226
  1227// reflection/schema-file.js
  1228var flatbuffers8 = __toESM(require("flatbuffers"), 1);
  1229var SchemaFile = class {
  1230  constructor() {
  1231    this.bb = null;
  1232    this.bb_pos = 0;
  1233  }
  1234  __init(i, bb) {
  1235    this.bb_pos = i;
  1236    this.bb = bb;
  1237    return this;
  1238  }
  1239  static getRootAsSchemaFile(bb, obj) {
  1240    return (obj || new SchemaFile()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1241  }
  1242  static getSizePrefixedRootAsSchemaFile(bb, obj) {
  1243    bb.setPosition(bb.position() + flatbuffers8.SIZE_PREFIX_LENGTH);
  1244    return (obj || new SchemaFile()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1245  }
  1246  filename(optionalEncoding) {
  1247    const offset = this.bb.__offset(this.bb_pos, 4);
  1248    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
  1249  }
  1250  includedFilenames(index, optionalEncoding) {
  1251    const offset = this.bb.__offset(this.bb_pos, 6);
  1252    return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
  1253  }
  1254  includedFilenamesLength() {
  1255    const offset = this.bb.__offset(this.bb_pos, 6);
  1256    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1257  }
  1258  static getFullyQualifiedName() {
  1259    return "reflection_SchemaFile";
  1260  }
  1261  static startSchemaFile(builder) {
  1262    builder.startObject(2);
  1263  }
  1264  static addFilename(builder, filenameOffset) {
  1265    builder.addFieldOffset(0, filenameOffset, 0);
  1266  }
  1267  static addIncludedFilenames(builder, includedFilenamesOffset) {
  1268    builder.addFieldOffset(1, includedFilenamesOffset, 0);
  1269  }
  1270  static createIncludedFilenamesVector(builder, data) {
  1271    builder.startVector(4, data.length, 4);
  1272    for (let i = data.length - 1; i >= 0; i--) {
  1273      builder.addOffset(data[i]);
  1274    }
  1275    return builder.endVector();
  1276  }
  1277  static startIncludedFilenamesVector(builder, numElems) {
  1278    builder.startVector(4, numElems, 4);
  1279  }
  1280  static endSchemaFile(builder) {
  1281    const offset = builder.endObject();
  1282    builder.requiredField(offset, 4);
  1283    return offset;
  1284  }
  1285  static createSchemaFile(builder, filenameOffset, includedFilenamesOffset) {
  1286    SchemaFile.startSchemaFile(builder);
  1287    SchemaFile.addFilename(builder, filenameOffset);
  1288    SchemaFile.addIncludedFilenames(builder, includedFilenamesOffset);
  1289    return SchemaFile.endSchemaFile(builder);
  1290  }
  1291  unpack() {
  1292    return new SchemaFileT(this.filename(), this.bb.createScalarList(this.includedFilenames.bind(this), this.includedFilenamesLength()));
  1293  }
  1294  unpackTo(_o) {
  1295    _o.filename = this.filename();
  1296    _o.includedFilenames = this.bb.createScalarList(this.includedFilenames.bind(this), this.includedFilenamesLength());
  1297  }
  1298};
  1299var SchemaFileT = class {
  1300  constructor(filename = null, includedFilenames = []) {
  1301    this.filename = filename;
  1302    this.includedFilenames = includedFilenames;
  1303  }
  1304  pack(builder) {
  1305    const filename = this.filename !== null ? builder.createString(this.filename) : 0;
  1306    const includedFilenames = SchemaFile.createIncludedFilenamesVector(builder, builder.createObjectOffsetList(this.includedFilenames));
  1307    return SchemaFile.createSchemaFile(builder, filename, includedFilenames);
  1308  }
  1309};
  1310
  1311// reflection/service.js
  1312var flatbuffers9 = __toESM(require("flatbuffers"), 1);
  1313var Service = class {
  1314  constructor() {
  1315    this.bb = null;
  1316    this.bb_pos = 0;
  1317  }
  1318  __init(i, bb) {
  1319    this.bb_pos = i;
  1320    this.bb = bb;
  1321    return this;
  1322  }
  1323  static getRootAsService(bb, obj) {
  1324    return (obj || new Service()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1325  }
  1326  static getSizePrefixedRootAsService(bb, obj) {
  1327    bb.setPosition(bb.position() + flatbuffers9.SIZE_PREFIX_LENGTH);
  1328    return (obj || new Service()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1329  }
  1330  name(optionalEncoding) {
  1331    const offset = this.bb.__offset(this.bb_pos, 4);
  1332    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
  1333  }
  1334  calls(index, obj) {
  1335    const offset = this.bb.__offset(this.bb_pos, 6);
  1336    return offset ? (obj || new RPCCall()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
  1337  }
  1338  callsLength() {
  1339    const offset = this.bb.__offset(this.bb_pos, 6);
  1340    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1341  }
  1342  attributes(index, obj) {
  1343    const offset = this.bb.__offset(this.bb_pos, 8);
  1344    return offset ? (obj || new KeyValue()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
  1345  }
  1346  attributesLength() {
  1347    const offset = this.bb.__offset(this.bb_pos, 8);
  1348    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1349  }
  1350  documentation(index, optionalEncoding) {
  1351    const offset = this.bb.__offset(this.bb_pos, 10);
  1352    return offset ? this.bb.__string(this.bb.__vector(this.bb_pos + offset) + index * 4, optionalEncoding) : null;
  1353  }
  1354  documentationLength() {
  1355    const offset = this.bb.__offset(this.bb_pos, 10);
  1356    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1357  }
  1358  declarationFile(optionalEncoding) {
  1359    const offset = this.bb.__offset(this.bb_pos, 12);
  1360    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
  1361  }
  1362  static getFullyQualifiedName() {
  1363    return "reflection_Service";
  1364  }
  1365  static startService(builder) {
  1366    builder.startObject(5);
  1367  }
  1368  static addName(builder, nameOffset) {
  1369    builder.addFieldOffset(0, nameOffset, 0);
  1370  }
  1371  static addCalls(builder, callsOffset) {
  1372    builder.addFieldOffset(1, callsOffset, 0);
  1373  }
  1374  static createCallsVector(builder, data) {
  1375    builder.startVector(4, data.length, 4);
  1376    for (let i = data.length - 1; i >= 0; i--) {
  1377      builder.addOffset(data[i]);
  1378    }
  1379    return builder.endVector();
  1380  }
  1381  static startCallsVector(builder, numElems) {
  1382    builder.startVector(4, numElems, 4);
  1383  }
  1384  static addAttributes(builder, attributesOffset) {
  1385    builder.addFieldOffset(2, attributesOffset, 0);
  1386  }
  1387  static createAttributesVector(builder, data) {
  1388    builder.startVector(4, data.length, 4);
  1389    for (let i = data.length - 1; i >= 0; i--) {
  1390      builder.addOffset(data[i]);
  1391    }
  1392    return builder.endVector();
  1393  }
  1394  static startAttributesVector(builder, numElems) {
  1395    builder.startVector(4, numElems, 4);
  1396  }
  1397  static addDocumentation(builder, documentationOffset) {
  1398    builder.addFieldOffset(3, documentationOffset, 0);
  1399  }
  1400  static createDocumentationVector(builder, data) {
  1401    builder.startVector(4, data.length, 4);
  1402    for (let i = data.length - 1; i >= 0; i--) {
  1403      builder.addOffset(data[i]);
  1404    }
  1405    return builder.endVector();
  1406  }
  1407  static startDocumentationVector(builder, numElems) {
  1408    builder.startVector(4, numElems, 4);
  1409  }
  1410  static addDeclarationFile(builder, declarationFileOffset) {
  1411    builder.addFieldOffset(4, declarationFileOffset, 0);
  1412  }
  1413  static endService(builder) {
  1414    const offset = builder.endObject();
  1415    builder.requiredField(offset, 4);
  1416    return offset;
  1417  }
  1418  static createService(builder, nameOffset, callsOffset, attributesOffset, documentationOffset, declarationFileOffset) {
  1419    Service.startService(builder);
  1420    Service.addName(builder, nameOffset);
  1421    Service.addCalls(builder, callsOffset);
  1422    Service.addAttributes(builder, attributesOffset);
  1423    Service.addDocumentation(builder, documentationOffset);
  1424    Service.addDeclarationFile(builder, declarationFileOffset);
  1425    return Service.endService(builder);
  1426  }
  1427  unpack() {
  1428    return new ServiceT(this.name(), this.bb.createObjList(this.calls.bind(this), this.callsLength()), this.bb.createObjList(this.attributes.bind(this), this.attributesLength()), this.bb.createScalarList(this.documentation.bind(this), this.documentationLength()), this.declarationFile());
  1429  }
  1430  unpackTo(_o) {
  1431    _o.name = this.name();
  1432    _o.calls = this.bb.createObjList(this.calls.bind(this), this.callsLength());
  1433    _o.attributes = this.bb.createObjList(this.attributes.bind(this), this.attributesLength());
  1434    _o.documentation = this.bb.createScalarList(this.documentation.bind(this), this.documentationLength());
  1435    _o.declarationFile = this.declarationFile();
  1436  }
  1437};
  1438var ServiceT = class {
  1439  constructor(name = null, calls = [], attributes = [], documentation = [], declarationFile = null) {
  1440    this.name = name;
  1441    this.calls = calls;
  1442    this.attributes = attributes;
  1443    this.documentation = documentation;
  1444    this.declarationFile = declarationFile;
  1445  }
  1446  pack(builder) {
  1447    const name = this.name !== null ? builder.createString(this.name) : 0;
  1448    const calls = Service.createCallsVector(builder, builder.createObjectOffsetList(this.calls));
  1449    const attributes = Service.createAttributesVector(builder, builder.createObjectOffsetList(this.attributes));
  1450    const documentation = Service.createDocumentationVector(builder, builder.createObjectOffsetList(this.documentation));
  1451    const declarationFile = this.declarationFile !== null ? builder.createString(this.declarationFile) : 0;
  1452    return Service.createService(builder, name, calls, attributes, documentation, declarationFile);
  1453  }
  1454};
  1455
  1456// reflection/schema.js
  1457var Schema = class {
  1458  constructor() {
  1459    this.bb = null;
  1460    this.bb_pos = 0;
  1461  }
  1462  __init(i, bb) {
  1463    this.bb_pos = i;
  1464    this.bb = bb;
  1465    return this;
  1466  }
  1467  static getRootAsSchema(bb, obj) {
  1468    return (obj || new Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1469  }
  1470  static getSizePrefixedRootAsSchema(bb, obj) {
  1471    bb.setPosition(bb.position() + flatbuffers10.SIZE_PREFIX_LENGTH);
  1472    return (obj || new Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
  1473  }
  1474  static bufferHasIdentifier(bb) {
  1475    return bb.__has_identifier("BFBS");
  1476  }
  1477  objects(index, obj) {
  1478    const offset = this.bb.__offset(this.bb_pos, 4);
  1479    return offset ? (obj || new Object_()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
  1480  }
  1481  objectsLength() {
  1482    const offset = this.bb.__offset(this.bb_pos, 4);
  1483    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1484  }
  1485  enums(index, obj) {
  1486    const offset = this.bb.__offset(this.bb_pos, 6);
  1487    return offset ? (obj || new Enum()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
  1488  }
  1489  enumsLength() {
  1490    const offset = this.bb.__offset(this.bb_pos, 6);
  1491    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1492  }
  1493  fileIdent(optionalEncoding) {
  1494    const offset = this.bb.__offset(this.bb_pos, 8);
  1495    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
  1496  }
  1497  fileExt(optionalEncoding) {
  1498    const offset = this.bb.__offset(this.bb_pos, 10);
  1499    return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
  1500  }
  1501  rootTable(obj) {
  1502    const offset = this.bb.__offset(this.bb_pos, 12);
  1503    return offset ? (obj || new Object_()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
  1504  }
  1505  services(index, obj) {
  1506    const offset = this.bb.__offset(this.bb_pos, 14);
  1507    return offset ? (obj || new Service()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
  1508  }
  1509  servicesLength() {
  1510    const offset = this.bb.__offset(this.bb_pos, 14);
  1511    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1512  }
  1513  advancedFeatures() {
  1514    const offset = this.bb.__offset(this.bb_pos, 16);
  1515    return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt("0");
  1516  }
  1517  mutate_advanced_features(value) {
  1518    const offset = this.bb.__offset(this.bb_pos, 16);
  1519    if (offset === 0) {
  1520      return false;
  1521    }
  1522    this.bb.writeUint64(this.bb_pos + offset, value);
  1523    return true;
  1524  }
  1525  fbsFiles(index, obj) {
  1526    const offset = this.bb.__offset(this.bb_pos, 18);
  1527    return offset ? (obj || new SchemaFile()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
  1528  }
  1529  fbsFilesLength() {
  1530    const offset = this.bb.__offset(this.bb_pos, 18);
  1531    return offset ? this.bb.__vector_len(this.bb_pos + offset) : 0;
  1532  }
  1533  static getFullyQualifiedName() {
  1534    return "reflection_Schema";
  1535  }
  1536  static startSchema(builder) {
  1537    builder.startObject(8);
  1538  }
  1539  static addObjects(builder, objectsOffset) {
  1540    builder.addFieldOffset(0, objectsOffset, 0);
  1541  }
  1542  static createObjectsVector(builder, data) {
  1543    builder.startVector(4, data.length, 4);
  1544    for (let i = data.length - 1; i >= 0; i--) {
  1545      builder.addOffset(data[i]);
  1546    }
  1547    return builder.endVector();
  1548  }
  1549  static startObjectsVector(builder, numElems) {
  1550    builder.startVector(4, numElems, 4);
  1551  }
  1552  static addEnums(builder, enumsOffset) {
  1553    builder.addFieldOffset(1, enumsOffset, 0);
  1554  }
  1555  static createEnumsVector(builder, data) {
  1556    builder.startVector(4, data.length, 4);
  1557    for (let i = data.length - 1; i >= 0; i--) {
  1558      builder.addOffset(data[i]);
  1559    }
  1560    return builder.endVector();
  1561  }
  1562  static startEnumsVector(builder, numElems) {
  1563    builder.startVector(4, numElems, 4);
  1564  }
  1565  static addFileIdent(builder, fileIdentOffset) {
  1566    builder.addFieldOffset(2, fileIdentOffset, 0);
  1567  }
  1568  static addFileExt(builder, fileExtOffset) {
  1569    builder.addFieldOffset(3, fileExtOffset, 0);
  1570  }
  1571  static addRootTable(builder, rootTableOffset) {
  1572    builder.addFieldOffset(4, rootTableOffset, 0);
  1573  }
  1574  static addServices(builder, servicesOffset) {
  1575    builder.addFieldOffset(5, servicesOffset, 0);
  1576  }
  1577  static createServicesVector(builder, data) {
  1578    builder.startVector(4, data.length, 4);
  1579    for (let i = data.length - 1; i >= 0; i--) {
  1580      builder.addOffset(data[i]);
  1581    }
  1582    return builder.endVector();
  1583  }
  1584  static startServicesVector(builder, numElems) {
  1585    builder.startVector(4, numElems, 4);
  1586  }
  1587  static addAdvancedFeatures(builder, advancedFeatures) {
  1588    builder.addFieldInt64(6, advancedFeatures, BigInt("0"));
  1589  }
  1590  static addFbsFiles(builder, fbsFilesOffset) {
  1591    builder.addFieldOffset(7, fbsFilesOffset, 0);
  1592  }
  1593  static createFbsFilesVector(builder, data) {
  1594    builder.startVector(4, data.length, 4);
  1595    for (let i = data.length - 1; i >= 0; i--) {
  1596      builder.addOffset(data[i]);
  1597    }
  1598    return builder.endVector();
  1599  }
  1600  static startFbsFilesVector(builder, numElems) {
  1601    builder.startVector(4, numElems, 4);
  1602  }
  1603  static endSchema(builder) {
  1604    const offset = builder.endObject();
  1605    builder.requiredField(offset, 4);
  1606    builder.requiredField(offset, 6);
  1607    return offset;
  1608  }
  1609  static finishSchemaBuffer(builder, offset) {
  1610    builder.finish(offset, "BFBS");
  1611  }
  1612  static finishSizePrefixedSchemaBuffer(builder, offset) {
  1613    builder.finish(offset, "BFBS", true);
  1614  }
  1615  unpack() {
  1616    return new SchemaT(this.bb.createObjList(this.objects.bind(this), this.objectsLength()), this.bb.createObjList(this.enums.bind(this), this.enumsLength()), this.fileIdent(), this.fileExt(), this.rootTable() !== null ? this.rootTable().unpack() : null, this.bb.createObjList(this.services.bind(this), this.servicesLength()), this.advancedFeatures(), this.bb.createObjList(this.fbsFiles.bind(this), this.fbsFilesLength()));
  1617  }
  1618  unpackTo(_o) {
  1619    _o.objects = this.bb.createObjList(this.objects.bind(this), this.objectsLength());
  1620    _o.enums = this.bb.createObjList(this.enums.bind(this), this.enumsLength());
  1621    _o.fileIdent = this.fileIdent();
  1622    _o.fileExt = this.fileExt();
  1623    _o.rootTable = this.rootTable() !== null ? this.rootTable().unpack() : null;
  1624    _o.services = this.bb.createObjList(this.services.bind(this), this.servicesLength());
  1625    _o.advancedFeatures = this.advancedFeatures();
  1626    _o.fbsFiles = this.bb.createObjList(this.fbsFiles.bind(this), this.fbsFilesLength());
  1627  }
  1628};
  1629var SchemaT = class {
  1630  constructor(objects = [], enums = [], fileIdent = null, fileExt = null, rootTable = null, services = [], advancedFeatures = BigInt("0"), fbsFiles = []) {
  1631    this.objects = objects;
  1632    this.enums = enums;
  1633    this.fileIdent = fileIdent;
  1634    this.fileExt = fileExt;
  1635    this.rootTable = rootTable;
  1636    this.services = services;
  1637    this.advancedFeatures = advancedFeatures;
  1638    this.fbsFiles = fbsFiles;
  1639  }
  1640  pack(builder) {
  1641    const objects = Schema.createObjectsVector(builder, builder.createObjectOffsetList(this.objects));
  1642    const enums = Schema.createEnumsVector(builder, builder.createObjectOffsetList(this.enums));
  1643    const fileIdent = this.fileIdent !== null ? builder.createString(this.fileIdent) : 0;
  1644    const fileExt = this.fileExt !== null ? builder.createString(this.fileExt) : 0;
  1645    const rootTable = this.rootTable !== null ? this.rootTable.pack(builder) : 0;
  1646    const services = Schema.createServicesVector(builder, builder.createObjectOffsetList(this.services));
  1647    const fbsFiles = Schema.createFbsFilesVector(builder, builder.createObjectOffsetList(this.fbsFiles));
  1648    Schema.startSchema(builder);
  1649    Schema.addObjects(builder, objects);
  1650    Schema.addEnums(builder, enums);
  1651    Schema.addFileIdent(builder, fileIdent);
  1652    Schema.addFileExt(builder, fileExt);
  1653    Schema.addRootTable(builder, rootTable);
  1654    Schema.addServices(builder, services);
  1655    Schema.addAdvancedFeatures(builder, this.advancedFeatures);
  1656    Schema.addFbsFiles(builder, fbsFiles);
  1657    return Schema.endSchema(builder);
  1658  }
  1659};

View as plain text