class TLV::Writer

Defined in:

tlv/writer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO::Memory, byte_format : IO::ByteFormat = IO::ByteFormat::LittleEndian, implicit_profile : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def byte_format : IO::ByteFormat #

[View source]
def end_container #

[View source]
def implicit_profile : Int32 | Nil #

[View source]
def io : IO::Memory #

[View source]
def put(tag : Tag, value : Value) #

[View source]
def put_array(tag : Tag, values : Array(Value)) #

[View source]
def put_bool(tag : Tag, value : Bool) #

[View source]
def put_double(tag : Tag, value : Float64) #

[View source]
def put_float(tag : Tag, value : Float32) #

[View source]
def put_hash(tag : Tag, value_hash : Hash(Tag, Value)) #

[View source]
def put_null(tag : Tag) #

[View source]
def put_signed_int(tag : Tag, value : Int) #

[View source]
def put_slice(tag : Tag, value : Slice(UInt8)) #

[View source]
def put_string(tag : Tag, value : String) #

[View source]
def put_unsigned_int(tag : Tag, value : UInt8 | UInt16 | UInt32 | UInt64) #

[View source]
def stack : Array(UInt8) #

[View source]
def start_array(tag : Tag) #

[View source]
def start_container(tag : Tag, container_type : UInt8) #

[View source]
def start_path(tag : Tag) #

[View source]
def start_structure(tag : Tag) #

[View source]