Running annotation with --size-prefixed generates almost empty file
Reproduction
- Get
Test.py, sample.py, and test.fbs from this gist.
- install flatbuffers from pip
- run python sample.py
- run
flatc --size-prefixed --annotated test.fbs -- prefixed_sample.dat
- run
flatc --annotated test.fbs -- sample.dat
Expected
prefixed_sample.afb file should contain similar content to sample.afb
Actual result
// Annotated Flatbuffer Binary
//
// Schema file: test.fbs
// Binary file: prefixed_sample.dat
flatc version 25.12.19
Running annotation with --size-prefixed generates almost empty file
Reproduction
Test.py,sample.py, andtest.fbsfrom this gist.flatc --size-prefixed --annotated test.fbs -- prefixed_sample.datflatc --annotated test.fbs -- sample.datExpected
prefixed_sample.afb file should contain similar content to sample.afb
Actual result
flatc version 25.12.19