1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-02 13:36:55 +00:00
Ian Shehadeh bbb3e16fd1 int/to-bytes: return a buffer instead of a tuple
Buffers make more sense for this function because one of their primary
use cases is working with bytes.
The tuple implementation was an array of floats,  which is less
performant and ergonomic for common operations. (i.e: bit manipulation)

Buffers also have the advantage they are mutable, meaning the user
can write ints to an existing buffer.
2022-03-05 08:21:53 -05:00
..
2021-05-31 13:46:02 -05:00
2022-01-06 20:38:15 -06:00
2022-01-21 16:44:11 -06:00
2021-05-31 13:46:02 -05:00
2021-05-31 13:46:02 -05:00
2021-05-31 13:46:02 -05:00
2022-01-21 13:02:56 +09:00