class

BSONCr::Encoder

Inherits Reference < Object

Constructors

new(io : IO)
Source

Instance methods

encode(value : NamedTuple(Any::Type), offset : UInt32 = 0)
Source
encode(value : Hash(String, Any::Type), offset : UInt32 = 0)
Source
encode(value : Array(Any::Type), offset : UInt32 = 0)
Source
write_value(k : String, v : Array(Any::Type))
Source
write_value(k : String, value : Hash(String, Any::Type))
Source
write_value(k : String, v : Bytes)
Source
write_value(k : String, v : UUID)
Source
write_value(k : String, v : Bool)
Source
write_value(k : String, v : ObjectId)
Source
write_value(k : String, v : Time)
Source
write_value(k : String, value : Nil)
Source
write_value(k : String, value : Int64)
Source
write_value(k : String, value : Int32)
Source
write_value(k : String, value : Float64)
Source
write_value(k : String, v : String)
Source
write_value(k : String, value : Document)
Source
write_value(k : String, value : DocumentArray)
Source