chronoxor / FastBinaryEncoding

Fast Binary Encoding is ultra fast and universal serialization solution for C++, C#, Go, Java, JavaScript, Kotlin, Python, Ruby, Swift
https://chronoxor.github.io/FastBinaryEncoding
MIT License
882 stars 90 forks source link

Documentation ambiguity #42

Open bitbugprime opened 3 years ago

bitbugprime commented 3 years ago

In the description of the wire format, it is unclear if the "size" parameter for arrays, lists, etc is the number of bytes the data structure takes on the wire, or a count of the number of elements in the data structure. Which is the correct interpretation? Please update the documentation to clear up this ambiguity. If it is the former, an option for a 64-bit size would be helpful.

Another thing you might want to document is how arrays and lists are accessed. If I want to access element M of N, do I have to waste time traversing M elements to get to it, which makes FBE essentially impossible to use with more than a tiny M because it is far too slow, or is it addressed directly?