Bite
Bite allows you to deal with byte data in a very comfortable and succinct way.
For example, here's how you'd deal with the 4 byte pattern b0 00 00 00 in
little endian hexadecimal:
iex> import Bite
iex> ~b(b0 00 00 00)hl
~b(b0 00 00 00)hl
iex> ~b(b0 00 00 00) |> Bite.to_integer()
176Installation
If available in Hex, the package can be installed
by adding bite to your list of dependencies in mix.exs:
def deps do
[
{:bite, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/bite.