diff options
author | Richard A Hofer <rofer@google.com> | 2021-01-05 17:45:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 14:45:23 -0800 |
commit | 4363c1d2cb898768073128bb92db9d4c63b43300 (patch) | |
tree | 034d78d4e0294eba2ff96e234ae9e16c7959bbd3 /tests/MyGame/Example/Monster.py | |
parent | 1bf1ec027011ea562757f2b85d8cd0b7831b9baa (diff) | |
download | flatbuffers-4363c1d2cb898768073128bb92db9d4c63b43300.tar.gz flatbuffers-4363c1d2cb898768073128bb92db9d4c63b43300.tar.bz2 flatbuffers-4363c1d2cb898768073128bb92db9d4c63b43300.zip |
Fix generated EndVector. (#6385)
Diffstat (limited to 'tests/MyGame/Example/Monster.py')
-rw-r--r-- | tests/MyGame/Example/Monster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/MyGame/Example/Monster.py b/tests/MyGame/Example/Monster.py index f50aa8be..80840af2 100644 --- a/tests/MyGame/Example/Monster.py +++ b/tests/MyGame/Example/Monster.py @@ -785,7 +785,7 @@ def MonsterMakeTestnestedflatbufferVectorFromBytes(builder, bytes): builder.StartVector(1, len(bytes), 1) builder.head = builder.head - len(bytes) builder.Bytes[builder.head : builder.head + len(bytes)] = bytes - return builder.EndVector(len(bytes)) + return builder.EndVector() def MonsterAddTestempty(builder, testempty): builder.PrependUOffsetTRelativeSlot(14, flatbuffers.number_types.UOffsetTFlags.py_type(testempty), 0) def MonsterAddTestbool(builder, testbool): builder.PrependBoolSlot(15, testbool, 0) def MonsterAddTesthashs32Fnv1(builder, testhashs32Fnv1): builder.PrependInt32Slot(16, testhashs32Fnv1, 0) @@ -840,7 +840,7 @@ def MonsterMakeTestrequirednestedflatbufferVectorFromBytes(builder, bytes): builder.StartVector(1, len(bytes), 1) builder.head = builder.head - len(bytes) builder.Bytes[builder.head : builder.head + len(bytes)] = bytes - return builder.EndVector(len(bytes)) + return builder.EndVector() def MonsterEnd(builder): return builder.EndObject() import MyGame.Example.Ability |