class Bencoding::Parser

Defined in:

bencoding/parser.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

bencode(builder : Bencoding::Builder)
bencode : String
bencode

Constructor methods inherited from class Object

bdecode(io : IO) : self
bdecode(string : String) : self
bdecode

Constructor Detail

def self.new(io : IO) #

[View source]

Instance Method Detail

def next_kind #

[View source]
def read_any : Any #

[View source]
def read_begin_dictionary #

[View source]
def read_begin_list #

[View source]
def read_dictionary(key_type : K.class, value_type : V.class) : Hash(K, V) forall K, V #

[View source]
def read_dictionary : Hash(String, Any) #

[View source]
def read_end #

[View source]
def read_end_dictionary #

[View source]
def read_end_list #

[View source]
def read_i16 : Int16 #

[View source]
def read_i32 : Int32 #

[View source]
def read_i64 : Int64 #

[View source]
def read_i8 : Int8 #

[View source]
def read_list(element_type : T.class) : Array(T) forall T #

[View source]
def read_list : Array(Any) #

[View source]
def read_string : String #

[View source]
def read_u16 : UInt16 #

[View source]
def read_u32 : UInt32 #

[View source]
def read_u64 : UInt64 #

[View source]
def read_u8 : UInt8 #

[View source]
def try_read(&) #

[View source]