Type

HiBON Type codes

Values

ValueMeaning
NONE0x00

End Of Document

FLOAT640x01

Floating point

STRING0x02

UTF8 STRING

DOCUMENT0x03

Embedded document (Both Object and Documents)

BINARY0x05

Binary data

BOOLEAN0x08

Boolean - true or false

TIME0x09

Standard Time counted as the total 100nsecs from midnight, January 1st, 1 A.D. UTC.

INT320x10

32-bit integer

INT640x12

64-bit integer,

BIGINT0x1B

Signed Bigint

UINT320x20

32 bit unsigned integer

FLOAT320x21

32 bit Float

UINT640x22

64 bit unsigned integer

HASHDOC0x23

Hash point to documement, public key or signature

VER0x3F

Version field

DEFINED_NATIVE0x40

Reserved as a definition tag it's for Native types

NATIVE_DOCUMENTDEFINED_NATIVE | 0x3e

This type is only used as an internal representation (Document type)

DEFINED_ARRAY0x80

Indicated an Intrinsic array types

NATIVE_HIBON_ARRAYDEFINED_ARRAY | DEFINED_NATIVE | DOCUMENT

Native types is only used inside the BSON object

NATIVE_DOCUMENT_ARRAYDEFINED_ARRAY | DEFINED_NATIVE | NATIVE_DOCUMENT

Represetents (HISON[]) is convert to an ARRAY of DOCUMENT's

NATIVE_STRING_ARRAYDEFINED_ARRAY | DEFINED_NATIVE | STRING

Represetents (Document[]) is convert to an ARRAY of DOCUMENT's