Exiffer.Binary (exiffer v0.1.2)
Documentation for Exiffer.Binary
.
Link to this section Summary
Functions
Force big endian byte order
Convert big endian to the currently selected byte order
Convert big-endian binary bytes to an integer.
Read bytes from binary data up until, but excluding, a specific byte value.
Convert a 16-bit integer to big-endian binary bytes.
Convert a 16-bit integer to binary bytes in current byte order.
Convert a 16-bit integer to little-endian binary bytes.
Convert a 32-bit integer to big-endian binary bytes.
Convert a 32-bit integer to binary bytes in current byte order.
Convert a 32-bit integer to little-endian binary bytes.
Convert little-endian binary bytes to integer.
Reverse the given binary bytes
Convert binary bytes to decimal based on endianness.
When given 8 bytes, returns a single {numerator, denominator} tuple. When given multiples of 8 bytes, returns a list of those tuples.
When given 8 bytes, returns a single {numerator, denominator} tuple. When given multiples of 8 bytes, returns a list of those tuples.
Link to this section Functions
big_endian(binary)
Force big endian byte order
big_endian_to_current(binary)
Convert big endian to the currently selected byte order
big_endian_to_integer(arg)
Convert big-endian binary bytes to an integer.
byte_order()
consume_until(match, binary, consumed)
Read bytes from binary data up until, but excluding, a specific byte value.
int16u_to_big_endian(integer)
Convert a 16-bit integer to big-endian binary bytes.
int16u_to_current(integer)
Convert a 16-bit integer to binary bytes in current byte order.
int16u_to_little_endian(integer)
Convert a 16-bit integer to little-endian binary bytes.
int32u_to_big_endian(integer)
Convert a 32-bit integer to big-endian binary bytes.
int32u_to_current(integer)
Convert a 32-bit integer to binary bytes in current byte order.
int32u_to_little_endian(integer)
Convert a 32-bit integer to little-endian binary bytes.
little_endian_to_integer(arg)
Convert little-endian binary bytes to integer.
optionally_create_ets_table()
rational_to_current(rationals)
reverse(binary)
Reverse the given binary bytes
set_byte_order(byte_order)
signed_rational_to_current(rationals)
to_integer(binary)
Convert binary bytes to decimal based on endianness.
to_rational(arg)
When given 8 bytes, returns a single {numerator, denominator} tuple. When given multiples of 8 bytes, returns a list of those tuples.
to_signed(arg)
to_signed_rational(arg)
When given 8 bytes, returns a single {numerator, denominator} tuple. When given multiples of 8 bytes, returns a list of those tuples.