Struct object::read::ReadCache [−][src]
Expand description
An implementation of ReadRef for data in a stream that implements
Read + Seek.
Contains a cache of read-only blocks of data, allowing references to them to be returned. Entries in the cache are never removed. Entries are keyed on the offset and size of the read. Currently overlapping reads are considered separate reads.
Implementations
Return an implementation of ReadRef that restricts reads
to the given range of the stream.
Unwrap this ReadCache<R>, returning the underlying reader.
Trait Implementations
Get a reference to a u8 slice at the given offset. Read more
Get a reference to a delimited u8 slice which starts at range.start. Read more
Get a reference to a u8 slice at the given offset, and update the offset. Read more
Get a reference to a Pod type at the given offset, and update the offset. Read more
Get a reference to a Pod type at the given offset. Read more
Get a reference to a slice of a Pod type at the given offset, and update the offset. Read more