#io #buffer #iobuffer

iobuffer

A simple memory-based buffer for IO reading and writing

2 unstable releases

Uses old Rust 2015

0.2.0 Mar 19, 2020
0.1.0 Apr 20, 2018

#677 in Algorithms

Download history 101/week @ 2020-11-07 58/week @ 2020-11-14 45/week @ 2020-11-21 72/week @ 2020-11-28 64/week @ 2020-12-05 54/week @ 2020-12-12 80/week @ 2020-12-19 46/week @ 2020-12-26 106/week @ 2021-01-02 71/week @ 2021-01-09 97/week @ 2021-01-16 174/week @ 2021-01-23 59/week @ 2021-01-30 37/week @ 2021-02-06 42/week @ 2021-02-13 64/week @ 2021-02-20

1,852 downloads per month
Used in 2 crates

Apache-2.0

9KB
121 lines

Build Status Current Version License

iobuffer

This repository contains a Rust crate iobuffer. This is a memory-based buffer which implements both the std::io::Write and std::io::Write traits.

It is useful in testing - for crates whose interface takes astd::io::Read or std::io::Write, using an iobuffer::IoBuffer instance allows tests to have full access to what has been read or written by the library.

See the documentation (as generated by cargo doc) or source for more information.

Documentation (crates.io).


lib.rs:

IoBuffer library

Copyright 2020 Metaswitch Networks

Memory-based buffer which implements Write and Read traits.

No runtime deps