flatbuffers
flatbuffers copied to clipboard
--size-prefixed generates empty annotated file
Running annotation with --size-prefixed generates almost empty file
Reproduction
- Get
Test.py,sample.py, andtest.fbsfrom 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
@jtdavis777 may I pick this up?
Go for it