Crate filebuffer [−] [src]
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
FileBuffer |
A memory-mapped file. |