lambda-llama / bresson

BSON parser and encoder
MIT License
1 stars 1 forks source link

BsonObjectId endianness #10

Open knsd opened 11 years ago

knsd commented 11 years ago

There are rumours that object id must be stored big-endian. Please provide a proof or disproof of that.

superbobry commented 11 years ago

Actually, BSON specification doesn't describes ObjectId as a byte array, thus your question is ill-defined.

However, each byte in the byte array is stored in little-endian format.