signed integer encoding

181 views
Skip to first unread message

Bernd Späth

unread,
Mar 16, 2012, 6:12:36 PM3/16/12
to bs...@googlegroups.com
Hi together,

to me the BSON-spec seems to be missing encoding information regarding both signed integer types: int32 as well as int64.

As it even dictates byte-order in little-endian format it seemed to me you are trying to accomplish binary-interchangablity with this spec.

If this is the case the information 32-bit signed integer is quite worthless if everyone uses her own encoding format.

Just in case my assumtion about the goals of your spec are right, I would like to suggest you add appropriate information regarding the encoding-format of referenced integer types.

I assume the intended encoding is a two's complement as this seems the one the one used in the bson code coming along with the mongo-c-driver.

best regards,

  Bernd.

Dwight Merriman

unread,
Mar 18, 2014, 10:15:00 AM3/18/14
to bs...@googlegroups.com
that is the intent.

and yes that makes sense.
Reply all
Reply to author
Forward
0 new messages