[erlang-questions] Reading fixed structures from file

Matthew Dempsky matthew@REDACTED
Sat Mar 1 23:24:04 CET 2008


On 3/1/08, Gleb Peregud <gleber.p@REDACTED> wrote:
>  Nevertheless, to avoid confusion, i'll ask explicitly:
>
>  Key:4/little-integer-unit:8
>
> matches four integers each having 8 bits, right?

No, and this is trivial to verify at the shell:

    1> <<A:4/little-integer-unit:8>> = <<1,2,3,4>>.
    <<1,2,3,4>>
    2> A.
    67305985



More information about the erlang-questions mailing list