pre-rfc3243-libtw2-buffer 0.2.0

Safe, write-only, generics-free buffer abstraction
Documentation
  • Coverage
  • 96.77%
    30 out of 31 items documented0 out of 15 items with examples
  • Size
  • Source code size: 21.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 1s Average build duration of successful builds.
  • all releases: 1m 1s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • heinrich5991

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