TS: Add missing generate files (#8075)

Co-authored-by: Michael Le <michael.le647@gmail.com>
This commit is contained in:
Björn Harrtell
2023-09-30 19:51:32 +02:00
committed by GitHub
parent bcb9ef1876
commit c4211538bd
115 changed files with 1400 additions and 188 deletions

View File

@@ -387,7 +387,7 @@ var ArrayStructT = class {
// arrays_test_complex/my-game/example/array-table.js
var flatbuffers = __toESM(require("flatbuffers"), 1);
var ArrayTable = class {
var ArrayTable = class _ArrayTable {
constructor() {
this.bb = null;
this.bb_pos = 0;
@@ -398,11 +398,11 @@ var ArrayTable = class {
return this;
}
static getRootAsArrayTable(bb, obj) {
return (obj || new ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
return (obj || new _ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static getSizePrefixedRootAsArrayTable(bb, obj) {
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
return (obj || new ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
return (obj || new _ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}
static bufferHasIdentifier(bb) {
return bb.__has_identifier("RHUB");