buffer

Crates.iobuffer
lib.rsbuffer
version0.1.9
sourcesrc
created_at2016-03-19 20:51:04.790535
updated_at2021-03-06 17:08:54.863369
descriptionSafe, write-only, generics-free buffer abstraction
homepage
repositoryhttps://github.com/tbu-/buffer
max_upload_size
id4487
size33,660
Tobias Bucher (tbu-)

documentation

README

buffer

buffer provides safe, write-only and generics-free byte buffers that can be used without initializing them first.

Example

let mut vec = Vec::with_capacity(1024);
if try!(reader.read_buffer(&mut vec)).len() != 0 {
    if vec[0] == 0 {
        // ...
    }
}
Commit count: 27

cargo fmt