NTP Implementation in Elixir
0x7f.dev
0x7f.dev
The nomenclature around binary/bitstream/charlist/iolist is fairly messy though. But to be fair I think most or maybe all of that shit is just straight from erlang. OTP is a rock solid standard lib but we used to joke that they just took turns naming modules and functions. "Everyone gets to do one!" There's no consistency.
This is super handy if you have variable length sections with a header, such as a DNS packet, saving having to do it in two operations.