A byte buffer.
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]