Enable Extended JSON's relaxed
mode, which attempts to return native JS types where possible, rather than BSON types
Enable native bigint support
Calculate the bson size for a passed in Javascript object.
the Javascript object to calculate the BSON byte size for
size of BSON object in bytes
Deserialize data as BSON.
the buffer containing the serialized set of BSON documents.
returns the deserialized Javascript Object.
Deserialize stream data as BSON documents.
the buffer containing the serialized set of BSON documents.
the start index in the data Buffer where the deserialization is to start.
number of documents to deserialize.
an array where to store the deserialized documents.
the index in the documents array from where to start inserting documents.
additional options used for the deserialization.
next index in the buffer after deserialization x numbers of documents.
Serialize a Javascript object.
the Javascript object to serialize.
Buffer object containing the serialized object.
Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.
the Javascript object to serialize.
the Buffer you pre-allocated to store the serialized BSON object.
the index pointing to the last written byte in the buffer.
Sets the size of the internal serialization buffer.
The desired size for the internal serialization buffer in bytes
Generated using TypeDoc
Output using the Extended JSON v1 spec
false