#io #buffer #io-write #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

#1698 in Algorithms

Download history 268/week @ 2023-12-04 280/week @ 2023-12-11 320/week @ 2023-12-18 83/week @ 2023-12-25 305/week @ 2024-01-01 495/week @ 2024-01-08 356/week @ 2024-01-15 179/week @ 2024-01-22 307/week @ 2024-01-29 292/week @ 2024-02-05 502/week @ 2024-02-12 300/week @ 2024-02-19 353/week @ 2024-02-26 407/week @ 2024-03-04 171/week @ 2024-03-11 433/week @ 2024-03-18

1,370 downloads per month
Used in 3 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