BSON.Type

Represents the type of a BSON value

Values

ValueMeaning
end0x00

End marker - should never occur explicitly

double_0x01

A 64-bit floating point value

string0x02

A UTF-8 string

object0x03

An object aka. dictionary of string to BSON

array0x04

An array of BSON values

binData0x05

Raw binary data (ubyte[])

undefined0x06

Deprecated

objectID0x07

BSON Object ID (96-bit)

bool_0x08

Boolean value

date0x09

Date value (UTC)

null_0x0A

Null value

regex0x0B

Regular expression

dbRef0x0C

Deprecated

code0x0D

JaveScript code

symbol0x0E

Symbol/variable name

codeWScope0x0F

JavaScript code with scope

int_0x10

32-bit integer

timestamp0x11

Timestamp value

long_0x12

64-bit integer

minKey0xff

Internal value

maxKey0x7f

Internal value

Meta