A thin wrapper for the CBson class
| NULL_BYTE | = | "\x00" |
| DEFAULT_MAX_BSON_SIZE | = | 4 * 1024 * 1024 |
| BSON_CODER | = | BSON_JAVA |
| BSON_CODER | = | BSON_C |
| BSON_CODER | = | BSON_RUBY |
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]