#io #io-write #buffer #read-write #testing #reading #traits

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

#37 in #io-write

Download history 287/week @ 2024-07-21 343/week @ 2024-07-28 396/week @ 2024-08-04 402/week @ 2024-08-11 514/week @ 2024-08-18 648/week @ 2024-08-25 636/week @ 2024-09-01 411/week @ 2024-09-08 532/week @ 2024-09-15 598/week @ 2024-09-22 404/week @ 2024-09-29 205/week @ 2024-10-06 365/week @ 2024-10-13 614/week @ 2024-10-20 364/week @ 2024-10-27 567/week @ 2024-11-03

1,915 downloads per month
Used in 4 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