tagion.utils.LEB128

Undocumented in source.

Members

Aliases

DecodeLEB128
alias DecodeLEB128(T) = Tuple!(T, "value", size_t, "size")
Undocumented in source.
check
alias check = Check!LEB128Exception
Undocumented in source.

Classes

LEB128Exception
class LEB128Exception
Undocumented in source.

Enums

ErrorValue
eponymoustemplate ErrorValue(T)
Undocumented in source.

Functions

calc_size
size_t calc_size(const(ubyte[]) data)
calc_size
size_t calc_size(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
calc_size
size_t calc_size(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
decode
DecodeLEB128!T decode(const(ubyte[]) data)

Converts a ubyte string to LEB128 number

decode
DecodeLEB128!T decode(const(ubyte[]) data)

Converts a ubyte string to LEB128 number

encode
immutable(ubyte[]) encode(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
encode
immutable(ubyte[]) encode(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
isCompleat
bool isCompleat(const(ubyte[]) data)
Undocumented in source. Be warned that the author may not have intended to support it.
isInvariant
bool isInvariant(const(ubyte[]) data)
Undocumented in source. Be warned that the author may not have intended to support it.
read
DecodeLEB128!T read(U[] data)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

DataSize
template DataSize(T)

Meta