Skip to main content

Crate reading_liner

Crate reading_liner 

Source
Expand description

This crate is for Reading and converting offset and line-column location while reading butes.

This crate supports a Stream reader which can convert between byte offset and line-column numbers. Support any type which implements std::io::Read.

The whole design is based on an Index, which is composed of line information to convert between byte offsets and line-column locations. One perticular usage is to use the Stream as a builder of Index or you can also use it when lazily reading and convert locations at the same time.

This lib should be used at low-level abstraction. For detailed examples, please refer to README

Re-exports§

pub use index::Index;
pub use index::Query;
pub use stream::Stream;

Modules§

index
The whole design of this crate is based on this module. The core types are Index and Query.
location
Location types
stream
The central Reader of this crate.