2 ms·
Your Erlang syntax is a bit off. You mean f(<<Length:32, Packet:Length/binary, Rest/binary>>) ->
by matthiasl 7y ago
Your Erlang syntax is a bit off. You mean
f(<<Length:32, Packet:Length/binary, Rest/binary>>) ->
- derefr 7y agoAh, sorry, yeah. I did a few good Erlang projects years ago, and am an Elixir developer now, but I never used the binary pattern matching syntax while I was writing Erlang, only needing to learn it once I was already over in Elixir-land, so I was trying to map backwards from the Elixir variation on the syntax.