Create a new Binary instance.
Optionalbuffer: BinarySequencea buffer object containing the binary data.
OptionalsubType: numberthe option binary type.
Static ReadonlyBUFFER_Initial buffer default size
Static ReadonlySUBTYPE_Byte Array BSON type
Static ReadonlySUBTYPE_Column BSON type
Static ReadonlySUBTYPE_Default BSON type
Static ReadonlySUBTYPE_Encrypted BSON type
Static ReadonlySUBTYPE_Function BSON type
Static ReadonlySUBTYPE_MD5 BSON type
Static ReadonlySUBTYPE_Sensitive BSON type
Static ReadonlySUBTYPE_User BSON type
Static ReadonlySUBTYPE_UUID BSON type
Static ReadonlySUBTYPE_Deprecated UUID BSON type
Reads 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.
StaticcreateStaticcreate
A class representation of the BSON Binary type.