Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 296 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 296 Bytes

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 {
        // ...
    }
}