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_User BSON type
Static
Readonly
SUBTYPE_UUID BSON type
Static
Readonly
SUBTYPE_Deprecated UUID BSON type
Please use SUBTYPE_UUID
Static
cacheThe UUID bytes
Compares the equality of this UUID with otherID
.
UUID instance to compare against.
Reads length bytes starting at position.
read from the given position in the Binary.
the number of bytes to read.
Returns the value of this binary as a string.
Optional
asRaw: booleanWill skip converting to a string
This is handy when calling this function conditionally for some key value pairs and not others
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.
Static
createStatic
generateStatic
isChecks if a value is a valid bson UUID
UUID, string or Buffer to validate.
Generated using TypeDoc
A class representation of the BSON UUID type.