Ich lese Elixier doc von Binäroperators: https://elixir-lang.org/getting-started/binaries-strings-and-char-lists.html#binaries-and-bitstringswarum << 256 :: Größe (16) >> vorhanden als <<1, 0>>?
In doc:
iex> <<255>>
<<255>>
iex> <<256>> # truncated
<<0>>
iex> <<256 :: size(16)>> # use 16 bits (2 bytes) to store the number
<<1, 0>>
der Standardwert ist 8 Bit Elixier binär, wenn mehr als 8 Bits, wird das Ergebnis auf 0 gestutzt
Aber warum <<256 :: size(16)>>
wird <<1, 0>>
präsentieren? Ich denke, es sollte <<1, 255>>
sein