问题
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?
回答1:
Yes. Here's the Ruby implementation's mapping if you want to verify that the constants are correct.
来源:https://stackoverflow.com/questions/9855681/better-explanation-of-bson-spec-examples