静态 只读BUFFER_Initial buffer default size
静态cache静态 只读SUBTYPE_Byte Array BSON type
静态 只读SUBTYPE_Column BSON type
静态 只读SUBTYPE_Default BSON type
静态 只读SUBTYPE_Encrypted BSON type
静态 只读SUBTYPE_Function BSON type
静态 只读SUBTYPE_MD5 BSON type
静态 只读SUBTYPE_User BSON type
静态 只读SUBTYPE_UUID BSON type
静态 只读SUBTYPE_Deprecated UUID BSON type
Compares the equality of this UUID with otherID.
UUID instance to compare against.
the length of the binary sequence
Updates this binary with byte_value.
a single byte we wish to write.
Reads length bytes starting at position.
read from the given position in the Binary.
the number of bytes to read.
Returns the UUID id as a 32 or 36 character hex string representation, excluding/including dashes (defaults to 36 character dash separated)
可选includeDashes: booleanshould the string exclude dash-separators.
Converts the id into its JSON string representation. A 36 character (dashes included) hex string in the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Converts the id into a 36 character (dashes included) hex string, unless a encoding is specified.
可选encoding: "base64" | "hex"Returns the value of this binary as a string.
可选asRaw: booleanWill skip converting to a string
Writes a buffer or string to the binary.
a string or buffer to be written to the Binary BSON object.
specify the binary of where to write the content.
静态create静态createCreates an UUID from a hex string representation of an UUID.
32 or 36 character hex string (dashes excluded/included).
静态generateGenerates a populated buffer containing a v4 uuid
静态isChecks if a value is a valid bson UUID
UUID, string or Buffer to validate.
A class representation of the BSON UUID type.