mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 23:40:57 +00:00
fixed packing structs (#6530)
* fixed packing structs in nested buffers * fixed packing structs
This commit is contained in:
@@ -137,14 +137,13 @@ constructor(
|
||||
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
||||
const fooTable = (this.fooTable !== null ? this.fooTable!.pack(builder) : 0);
|
||||
const fooUnion = builder.createObjectOffset(this.fooUnion);
|
||||
const fooStruct = (this.fooStruct !== null ? this.fooStruct!.pack(builder) : 0);
|
||||
|
||||
TableInFirstNS.startTableInFirstNS(builder);
|
||||
TableInFirstNS.addFooTable(builder, fooTable);
|
||||
TableInFirstNS.addFooEnum(builder, this.fooEnum);
|
||||
TableInFirstNS.addFooUnionType(builder, this.fooUnionType);
|
||||
TableInFirstNS.addFooUnion(builder, fooUnion);
|
||||
TableInFirstNS.addFooStruct(builder, fooStruct);
|
||||
TableInFirstNS.addFooStruct(builder, (this.fooStruct !== null ? this.fooStruct!.pack(builder) : 0));
|
||||
|
||||
return TableInFirstNS.endTableInFirstNS(builder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user