<p dir="ltr">Would this work:</p>
<p dir="ltr">my_fun(<<Bin:8/binary, Rest/binary>>) -> ok;</p>
<p dir="ltr">my_fun(<<Bin:16/binary, Rest/binary>>) -> ok.</p>
<p dir="ltr">?</p>