struct BSON::Binary

Included Modules

Defined in:

bson/binary.cr

Constant Summary

SUBTYPES = Hash {:generic => 0_u8, :function => 1_u8, :old => 2_u8, :uuid_old => 3_u8, :uuid => 4_u8, :md5 => 5_u8, :user => 128_u8}
TYPES = SUBTYPES.invert

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module BSON::Value

bson_size bson_size, to_bson to_bson

Constructor Detail

def self.new(data : Slice(UInt8), type : ::Symbol = :generic) #

[View source]

Class Method Detail

def self.from_bson(bson : IO) #

[View source]

Instance Method Detail

def bson_size #

[View source]
def data : Slice(UInt8) #

[View source]
def old? #

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

[View source]
def type : Symbol #

[View source]