Closed lun-4 closed 5 years ago
welp, changing it to not require an allocator causes issues, didn't notice that the memory would be fucked up by the time we leave the prettyRData function.
another idea though would be having the caller give the Stream itself.
Issue with doing it as Stream
is that the IPv6 printer needs its own memory to work on. until the socket module in zig gets merged (with a better algorithm) this issue will stay closed.
we already just allocate 256 u8's and hope for the best, better keep something on the stack then. function return type doesn't change which is good