Reads to the end of the source into memory from context.allocator (free it with free).
size_hint is the expected length, when it is known. On any error the bytes read so far are
freed.
read_all :: (reader: Reader, size_hint := 0) -> ([] u8, Io_Error)
Reads to the end of the source into memory from context.allocator (free it with free).
size_hint is the expected length, when it is known. On any error the bytes read so far are
freed.
Parameters
- reader: Reader
- size_hint := 0
Returns
- [] u8