flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

--size-prefixed generates empty annotated file

Open BANOnotIT opened this issue 8 months ago • 2 comments

Running annotation with --size-prefixed generates almost empty file

Reproduction

  1. Get Test.py, sample.py, and test.fbs from this gist.
  2. install flatbuffers from pip
  3. run python sample.py
  4. run flatc --size-prefixed --annotated test.fbs -- prefixed_sample.dat
  5. 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

BANOnotIT avatar Mar 05 '26 19:03 BANOnotIT

@jtdavis777 may I pick this up?

dataCenter430 avatar Mar 10 '26 16:03 dataCenter430

Go for it

jtdavis777 avatar Mar 10 '26 17:03 jtdavis777