39 lines
825 B
C#
39 lines
825 B
C#
namespace ln.bson
|
|
{
|
|
public enum BsonType : byte
|
|
{
|
|
EndOfDocument = 0x00,
|
|
Double = 0x01,
|
|
String = 0x02,
|
|
Document = 0x03,
|
|
Array = 0x04,
|
|
Binary = 0x05,
|
|
ObjectId = 0x07,
|
|
Boolean = 0x08,
|
|
DateTime = 0x09,
|
|
Null = 0x0a,
|
|
Regex = 0x0b,
|
|
DBPointer = 0x0c,
|
|
JavaScript = 0x0d,
|
|
Symbol = 0x0e,
|
|
ScopedJavaScript = 0x0f,
|
|
Int32 = 0x10,
|
|
TimeStamp = 0x11,
|
|
Int64 = 0x12,
|
|
Decimal128 = 0x13,
|
|
MinKey = 0xFF,
|
|
MaxKey = 0x7F,
|
|
}
|
|
|
|
public enum BsonBinarySubType : byte
|
|
{
|
|
Generic = 0x00,
|
|
Function = 0x01,
|
|
Binary = 0x02,
|
|
UuidOld = 0x03,
|
|
Uuid = 0x04,
|
|
MD5 = 0x05,
|
|
Encrypted = 0x06,
|
|
UserDefined = 0x80,
|
|
}
|
|
} |