Crates.io | buffer |
lib.rs | buffer |
version | 0.1.9 |
source | src |
created_at | 2016-03-19 20:51:04.790535 |
updated_at | 2021-03-06 17:08:54.863369 |
description | Safe, write-only, generics-free buffer abstraction |
homepage | |
repository | https://github.com/tbu-/buffer |
max_upload_size | |
id | 4487 |
size | 33,660 |
buffer
provides safe, write-only and generics-free byte buffers that can be
used without initializing them first.
let mut vec = Vec::with_capacity(1024);
if try!(reader.read_buffer(&mut vec)).len() != 0 {
if vec[0] == 0 {
// ...
}
}