#buffer #io #io-write

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

#42 in #io-write

Download history 276/week @ 2024-06-17 459/week @ 2024-06-24 364/week @ 2024-07-01 372/week @ 2024-07-08 297/week @ 2024-07-15 286/week @ 2024-07-22 342/week @ 2024-07-29 399/week @ 2024-08-05 402/week @ 2024-08-12 517/week @ 2024-08-19 654/week @ 2024-08-26 627/week @ 2024-09-02 411/week @ 2024-09-09 536/week @ 2024-09-16 599/week @ 2024-09-23 400/week @ 2024-09-30

1,949 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