
Write the bytes of an `int/s64` or `int/u64` into a buffer.
The `buffer` parameter specifies an existing buffer to write to, if unset a new buffer will be created.
Returns the modified buffer.
The `endianness` parameter indicates the byte order:
- `nil` (unset): system byte order
- `:le`: little-endian, least significant byte first
- `:be`: big-endian, most significant byte first
</pre><a href="https://janetdocs.org/int/to-bytes">Community Examples</a></div><hr><div class="binding"><span id="int/to-number"