Create a new Binary instance.
Optional
buffer: BinarySequencea buffer object containing the binary data.
Optional
subType: numberthe option binary type.
Static
Readonly
BUFFER_Initial buffer default size
Static
Readonly
SUBTYPE_Byte Array BSON type
Static
Readonly
SUBTYPE_Column BSON type
Static
Readonly
SUBTYPE_Default BSON type
Static
Readonly
SUBTYPE_Encrypted BSON type
Static
Readonly
SUBTYPE_Function BSON type
Static
Readonly
SUBTYPE_MD5 BSON type
Static
Readonly
SUBTYPE_Sensitive BSON type
Static
Readonly
SUBTYPE_User BSON type
Static
Readonly
SUBTYPE_UUID BSON type
Static
Readonly
SUBTYPE_Deprecated UUID BSON type
Please use SUBTYPE_UUID
Prints a human-readable string of BSON value information If invoked manually without node.js.inspect function, this will default to a modified JSON.stringify
Optional
depth: numberOptional
options: unknownOptional
inspect: InspectFnReads length bytes starting at position.
read from the given position in the Binary.
the number of bytes to read.
Writes a buffer to the binary.
a string or buffer to be written to the Binary BSON object.
specify the binary of where to write the content.
Static
createStatic
createGenerated using TypeDoc
A class representation of the BSON Binary type.