Exiffer.Binary (exiffer v0.1.7)

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

Link to this function

big_endian(binary)

Force big endian byte order

Link to this function

big_endian_to_current(binary)

Convert big endian to the currently selected byte order

Link to this function

big_endian_to_integer(arg)

Convert big-endian binary bytes to an integer.

Link to this function

consume_until(match, binary, consumed)

Read bytes from binary data up until, but excluding, a specific byte value.

Link to this function

int16u_to_big_endian(integer)

Convert a 16-bit integer to big-endian binary bytes.

Link to this function

int16u_to_current(integer)

Convert a 16-bit integer to binary bytes in current byte order.

Link to this function

int16u_to_little_endian(integer)

Convert a 16-bit integer to little-endian binary bytes.

Link to this function

int32u_to_big_endian(integer)

Convert a 32-bit integer to big-endian binary bytes.

Link to this function

int32u_to_current(integer)

Convert a 32-bit integer to binary bytes in current byte order.

Link to this function

int32u_to_little_endian(integer)

Convert a 32-bit integer to little-endian binary bytes.

Link to this function

little_endian_to_integer(arg)

Convert little-endian binary bytes to integer.

Link to this function

optionally_create_ets_table()

Link to this function

rational_to_current(rationals)

Link to this function

reverse(binary)

Reverse the given binary bytes

Link to this function

set_byte_order(byte_order)

Link to this function

signed_rational_to_current(rationals)

Link to this function

to_integer(binary)

Convert binary bytes to decimal based on endianness.

Link to this function

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.

Link to this function

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.