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字节数组BSON类型
Static
Readonly
SUBTYPE_Column BSON typeBSON列类型
Static
Readonly
SUBTYPE_Default BSON type默认BSON类型
Static
Readonly
SUBTYPE_Encrypted BSON type加密BSON类型
Static
Readonly
SUBTYPE_Function BSON type函数BSON类型
Static
Readonly
SUBTYPE_MD5 BSON typeMD5 BSON类型
Static
Readonly
SUBTYPE_User BSON type用户BSON类型
Static
Readonly
SUBTYPE_UUID BSON type类型
Static
Readonly
SUBTYPE_Deprecated UUID BSON type
Please use SUBTYPE_UUID
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.要写入Binary BSON对象的字符串或缓冲区。
specify the binary of where to write the content.指定写入内容的二进制位置。
Static
createStatic
createGenerated using TypeDoc
A class representation of the BSON Binary type.BSON二进制类型的类表示形式。