tl v57.2.0-rc TL.Vec

Module for working with Vector data types

Summary

Functions

Decodes bare vector<%type>/vector<!X> as TL structs and returns rest of the binary

Decodes boxed Vector as TL structs and returns rest of the binary

Decodes vector as list of integer and resturns rest of the binary

Decodes vector as list of integer and resturns rest of the binary

Decodes vector as list of integer and resturns rest of the binary

Decodes vector/vector as list of string/binary and resturns rest of the binary

Encodes list of X as vector type

Encodes list of structs T as bare vector<@T> type

Encodes list of structs T as boxed Vector type

Encodes list of numbers as Vector type

Encodes list of numbers as Vector type

Encodes list of numbers as Vector type

Encodes list of string/binary as Vector/vector type

Functions

decode_bare(arg, constructor_crc32, decoder)
decode_bare(binary, integer, (binary -> term)) :: {[term] | [], binary}

Decodes bare vector<%type>/vector<!X> as TL structs and returns rest of the binary

decode_boxed(arg, decoder)
decode_boxed(binary, (binary -> term)) :: {[term] | [], binary}

Decodes boxed Vector as TL structs and returns rest of the binary

decode_double(arg)
decode_double(binary) :: {[integer] | [], binary}

Decodes vector as list of integer and resturns rest of the binary

decode_int(arg)
decode_int(binary) :: {[integer] | [], binary}

Decodes vector as list of integer and resturns rest of the binary

decode_long(arg)
decode_long(binary) :: {[integer] | [], binary}

Decodes vector as list of integer and resturns rest of the binary

decode_string(arg)
decode_string(binary) :: {[binary] | [], binary}

Decodes vector/vector as list of string/binary and resturns rest of the binary

encode(list, prepend_vector_crc \\ true)

Encodes list of X as vector type

encode_bare(list)
encode_bare([struct]) :: binary

Encodes list of structs T as bare vector<@T> type

encode_boxed(list)
encode_boxed([struct]) :: binary

Encodes list of structs T as boxed Vector type

encode_double(list)
encode_double([integer]) :: binary

Encodes list of numbers as Vector type

encode_int(list)
encode_int([integer]) :: binary

Encodes list of numbers as Vector type

encode_long(list)
encode_long([integer]) :: binary

Encodes list of numbers as Vector type

encode_string(list)
encode_string([binary]) :: binary

Encodes list of string/binary as Vector/vector type