I'm trying to understand the examples on http://bsonspec.org/#/specification in terms of how the bytes map to the BNF-ish specification, but having a difficult time. Is the text that gets bold when you mouse over either side correctly synchronized with the other side?
Asked
Active
Viewed 915 times
1 Answers
2
Yes. Here's the Ruby implementation's mapping if you want to verify that the constants are correct.

John Feminella
- 303,634
- 46
- 339
- 357
-
Thanks! I was forgetting that int32 is 4-bytes in little endian. Much easier to visually parse now :) – Ben Taitelbaum Mar 25 '12 at 00:09