Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

random-access-disk

crates.io version build status downloads docs.rs docs

Continuously read,write to disk, using random offsets and lengths. Adapted from random-access-storage/random-access-file.

Usage

use std::path::PathBuf;
use tempdir::TempDir;

let dir = TempDir::new("random-access-disk").unwrap();
let mut file = random_access_disk::RandomAccessDisk::new(dir.path().join("README.db"));

file.write(0, b"hello").await.unwrap();
file.write(5, b" world").await.unwrap();
let _text = file.read(0, 11).await.unwrap();

Installation

$ cargo add random-access-disk

License

MIT OR Apache-2.0

About

Continuously read/write to disk using random offsets and lengths .

Resources

License

Code of conduct

Packages

No packages published

Languages