Type

HiBON Type codes

Values

ValueMeaning
NONE0x00

End Of Document

STRING0x01

UTF8 STRING

DOCUMENT0x02

Embedded document (Both Object and Documents)

BINARY0x03

Binary data

BOOLEAN0x08

Boolean - true or false

TIME0x09

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

INT320x11

32-bit integer

INT640x12

64-bit integer,

UINT320x14

32 bit unsigned integer

UINT640x15

64 bit unsigned integer

FLOAT320x17

32 bit Float

FLOAT640x18

Floating point

BIGINT0x1A

Signed Bigint

VER0x1F

Version field

DEFINED_NATIVE0x40

The following is only used internal (by HiBON) and should to be use in a stream Document

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