mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-16 01:07:29 +00:00
fixed packing structs in nested buffers (#6509)
This commit is contained in:
@@ -856,7 +856,7 @@ class TsGenerator : public BaseGenerator {
|
||||
const std::string field_accessor = "this." + field_name + "()";
|
||||
field_val = GenNullCheckConditional(field_accessor,
|
||||
field_accessor + "!.unpack()");
|
||||
field_offset_val = GenNullCheckConditional(
|
||||
field_offset_decl = GenNullCheckConditional(
|
||||
"this." + field_name, "this." + field_name + "!.pack(builder)",
|
||||
"0");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user