Crate random_access_disk [−] [src]
Continuously read,write to disk, using random offsets and lengths.
ⓘThis example is not tested
extern crate random_access_disk; use std::path::PathBuf; let dir = TempDir::new("random-access-disk").unwrap(); let mut file = rad::Sync::new(PathBuf::from("./file.log")); file.write(0, b"hello")?; file.write(5, b" world")?; let text = file.read(0, 11)?;
Structs
Sync |
Main constructor. |
SyncMethods |
Methods that have been implemented to provide synchronous access to disk. . These should generally be kept private, but exposed to prevent leaking internals. |