module BSON

Extended Modules

Defined in:

bson.cr
bson/binary.cr
bson/code.cr
bson/code_with_scope.cr
bson/db_pointer.cr
bson/max_key.cr
bson/min_key.cr
bson/object_id.cr
bson/specialized.cr
bson/symbol.cr
bson/timestamp.cr
bson/undefined.cr
bson/value.cr
bson/version.cr

Constant Summary

TYPES = Hash {1 => Float64, 2 => String, 3 => Document, 4 => Array(Type), 5 => BSON::Binary, 6 => BSON::Undefined, 7 => BSON::ObjectId, 8 => Bool, 9 => Time, 10 => Nil, 11 => Regex, 12 => BSON::DBPointer, 13 => BSON::Code, 14 => BSON::Symbol, 15 => BSON::CodeWithScope, 16 => Int32, 17 => BSON::Timestamp, 18 => Int64, 255 => BSON::MinKey, 127 => BSON::MaxKey}
TYPES_BY_CLASS = TYPES.invert
VERSION = "0.1.4"

Instance Method Summary

Instance Method Detail

def byte_for_type(type) #

[View source]
def decode(bson : IO) #

[View source]
def read_cstring(bson : IO) #

[View source]
def type_for_byte(byte) #

[View source]