Hi all
I try to understand binaries and consider following example:
iex(13)> a = <<0, 1, 2, 3>>
The binary has 4 byte. What is the values of each?
The first byte holds the value 1, second holds value 2 and so on?
Thanks
Hi all
I try to understand binaries and consider following example:
iex(13)> a = <<0, 1, 2, 3>>
The binary has 4 byte. What is the values of each?
The first byte holds the value 1, second holds value 2 and so on?
Thanks
Exactly, by default a binary lists integer 8-bit values, so from 0-255, so you have a 4 byte binary there where each byte is 0, 1, 2, then 3. ![]()