Initial buffer default size
Byte Array BSON type
Column BSON type
Default BSON type
Encrypted BSON type
Function BSON type
MD5 BSON type
User BSON type
UUID BSON type
Deprecated UUID BSON type @deprecated Please use SUBTYPE_UUID
The UUID bytes
The UUID bytes
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.
Creates a Binary instance from the current UUID.
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 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.
Returns the value of this binary as a string.
Will 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.
Creates an UUID from a base64 string representation of an UUID.
Creates an UUID from a hex string representation of an UUID.
32 or 36 character hex string (dashes excluded/included).
Generates a populated buffer containing a v4 uuid
Checks 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.