Skip to content
/ rio Public

Ergonomic, composable, efficient read/write streams

License

Notifications You must be signed in to change notification settings

riot-ml/rio

Repository files navigation

Rio

Ergonomic, composable, efficient read/write streams

Rio is the composable streaming I/O layer on which Riot is built on. It provides the interfaces to define Readers and Writers for customs sources and sinks, and it provides functions to glue them together.

It is heavily inspired by Rust's Read and Write traits.

It also provides common instances of Read/Write for Buffer, Bytes, and Cstruct.

The Read interface

The Read interface defines how to read bytes from a source.

Implementors of this interface are called 'readers'.

Reader are meant to compose nicely with each other.

Note that each call to Rio.read reader may involve a system call.

The Write interface

The Write interface defines objects that are byte-oriented sinks.

Implementors of this interface are called 'writers'.

Writers are meant to compose nicely with each other.

About

Ergonomic, composable, efficient read/write streams

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published