Search code examples
crystal-lang

Crystal lang : How to write binary Int to IO


best practise?

In binary format, please

And the situation of BigEndian or LittleEndian ?


Solution

  • Then it's IO#write_bytes. Endianess can be configured via argument format.