Create a UUID type创建UUID类型
When the argument to the constructor is omitted a random v4 UUID will be generated.当省略构造函数的参数时,将生成一个随机的v4UUID。
Optional
input: string | Uint8Array | UUIDCan be a 32 or 36 character hex string (dashes excluded/included) or a 16 byte binary Buffer.可以是32或36个字符的十六进制字符串(不包括破折号)或16字节的二进制缓冲区。
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 typeUUID BSON类型
Static
Readonly
SUBTYPE_Deprecated UUID BSON type不推荐的UUID BSON类型
Please use SUBTYPE_UUID
The UUID bytesUUID字节
Compares the equality of this UUID with 比较此UUID与otherID
.otherID
的相等性。
UUID instance to compare against.要与之进行比较的UUID实例。
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)以32或36个字符的十六进制字符串表示形式返回UUID id,不包括破折号(默认为36个字符以破折号分隔)
Optional
includeDashes: booleanshould the string exclude dash-separators.字符串是否应排除短划线分隔符。
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
createStatic
generateStatic
isGenerated using TypeDoc
A class representation of the BSON UUID type.BSON UUID类型的类表示形式。