Initial buffer default size
Default BSON type
Function BSON type
Byte Array BSON type
Deprecated UUID BSON type @deprecated Please use SUBTYPE_UUID
UUID BSON type
MD5 BSON type
Encrypted BSON type
Column BSON type
User BSON type
Updates this binary with byte_value.
a single byte we wish to write.
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.
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.
Will skip converting to a string
the length of the binary sequence
Returns the UUID id as a 32 or 36 character hex string representation, excluding/including dashes (defaults to 36 character dash separated)
should the string exclude dash-separators.
Converts the id into a 36 character (dashes included) hex string, unless a encoding is specified.
Converts the id into its JSON string representation. A 36 character (dashes included) hex string in the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Compares the equality of this UUID with otherID
.
UUID instance to compare against.
Creates a Binary instance from the current UUID.
Generates a populated buffer containing a v4 uuid
Checks if a value is a valid bson UUID
UUID, string or Buffer to validate.
Creates an UUID from a hex string representation of an UUID.
32 or 36 character hex string (dashes excluded/included).
Create an UUID type
Can be a 32 or 36 character hex string (dashes excluded/included) or a 16 byte binary Buffer.
The UUID bytes
The UUID bytes
Generated using TypeDoc
A class representation of the BSON UUID type.