blackboxprotobuf icon indicating copy to clipboard operation
blackboxprotobuf copied to clipboard

No "seen_repeated" mention in typedef description

Open drevoborod opened this issue 4 months ago • 1 comments

In documentation about typedefs there is nothing about "seen_repeated" parameter which is necessary to create your own typedef structure. Seems like the documentation doesn't cover everything in the typedef.

drevoborod avatar Aug 04 '25 18:08 drevoborod

Hi! The seen_repeated field is primarily so that BBPB can track which fields might be repeated so it can be tagged correctly in a proto file export. BBPB will handle repeated fields during encoding/decoding even if the field is not set. It should not be necessary to add the field for any normal encoding/decoding functionality.

I will make a note to add it to the documentation later.

rwinkelmaier avatar Aug 08 '25 01:08 rwinkelmaier