ctaggart / froto

Froto: F# Protocol Buffers
MIT License
146 stars 27 forks source link

position in ProtoField are defined differently #97

Closed 7sharp9 closed 3 years ago

7sharp9 commented 5 years ago
type ProtoField (rule:ProtoFieldRule, tp:string, name:string, position:int32, options:ProtoOption list option) =

position here is defined as in in32, elsewhere the position is declared as a FieldNum which is an uint32:

and FieldNum = uint32

Proto actually declares the numbering as a uint16 beginning at 1.