Expand description
Filebuffer, a library for fast and simple file reading.
§Examples
Map a file into memory and access it as a slice of bytes. This is simple and will generally
outperform Read::read_to_end()
.
use filebuffer::FileBuffer;
let fbuffer = FileBuffer::open("src/lib.rs").unwrap();
assert_eq!(&fbuffer[3..45], &b"Filebuffer -- Fast and simple file reading"[..]);
Structs§
- File
Buffer - A memory-mapped file.