A hash in which the order of keys are preserved.
Under Ruby 1.9 and greater, this class has no added methods because Ruby‘s Hash already keeps its keys ordered by order of insertion.
DEFAULT_MAX_BSON_SIZE | = | Mongo::DEFAULT_MAX_BSON_SIZE |
DEFAULT_MAX_BSON_SIZE | = | 4 * 1024 * 1024 |
BSON_CODER | = | BSON_JAVA |
BSON_CODER | = | BSON_C |
BSON_CODER | = | BSON_RUBY |
NULL_BYTE | = | "\x00" |
Reads a single BSON document from an IO object. This method is used in the executable b2json, bundled with the bson gem, for reading a file of bson documents.
@param [IO] io an io object containing a bson object.
@return [ByteBuffer]