Crate io_utils

Source

Modules§

string_io
This is for read/write strings from/to file with specific encoding and size, or read/write as NUL-terminated strings.

Structs§

CombinedReader
A Reader that combines two readers into one with the ability to Read and Seek and Debug
CursorVecU8
A better Cursor<Vec<u8>> which has a friendlier Debug trait implementation
DishonestReader
Dishonest reader, a reader that reads data but modifies it.
MultistreamIO
The MultistreamIO<R, W, RW> is for managing multiple IO objects.This thing itself implements Read + Write + Seek + Debug, when these traits methods are called, the selected stream is manipulated.by using this, you can control the 3rd party library to read or write data from/into different stream objects, and you can manipulate these data or streams.
SharedCursor
The shared Cursor.Because it’s shared, when the 3rd library owned it, we still can access to it..
SharedMultistreamIO
The shared version of the MultistreamIO.Because it’s shared, when the 3rd library owned it, we still can access to it, e.g. switch it to a cursor stream to capture some data.
SharedReadWrite
Encapsulated shared Read + Write + Seek + Debug
SharedReader
Encapsulated shared Read + Seek + Debug
SharedWriter
Encapsulated shared Write + Seek + Debug

Enums§

StreamType
The StreamType<R, W, RW> is for the MultistreamIO<R, W, RW> to manage multiple IO objects.A stream can be a reader, writer, reader + writer, or cursor.By using the MultistreamIO<R, W, RW> you can control the 3rd party library to write data into different streams and manipulate them.

Traits§

ReadWrite
The ReadWrite trait, Read + Write + Seek + Debug
Reader
The Reader trait, Read + Seek + Debug
Writer
The Writer trait, Write + Seek + Debug

Functions§

copy
Copy data from a reader to a writer from the current position.
goto_offset_without_seek
Go to an offset without using seek. It’s achieved by using dummy reads.