Debian Codegraph @

memio/README

raw
1 memio: memory-backed I/O primitives
2
3 memio provides implementations of [[io::stream]] which can read from or write to
4 byte slices. [[fixed]] uses a caller-supplied buffer for storage, while
5 [[dynamic]] uses a dynamically allocated buffer which will grow instead of
6 erroring when writing past the end of the buffer. All memio streams are
7 seekable; the read-write head works the same way as an operating system file.
8 You can access the contents of the buffer via [[buffer]] and [[string]].
9
10 Additionally, memio provides string-related I/O operations. Each of the utility
11 functions (e.g. [[appendrune]]) work correctly with any [[io::handle]], but
12 for efficiency reasons it is recommended that they are either a memio:: or
13 [[bufio::]] stream.