hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

README (703B)


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