Continuously read/write to memory using random offsets and lengths.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
benches
fuzz
src
tests
.gitignore
.travis.yml
CERTIFICATE
CHANGELOG.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
rustfmt.toml

README.md

random-access-memory

crates.io version build status downloads docs.rs docs

Continuously read,write to memory using random offsets and lengths.

Usage

extern crate random_access_memory as ram;

let mut file = ram::Sync::default();
file.write(0, b"hello").unwrap();
file.write(5, b" world").unwrap();
let text = file.read(0, 11).unwrap();
assert_eq!(text, b"hello world");

Installation

$ cargo add random-access-memory

Tasks

  • Sync implementation.
  • Async implementation (wait for futures 1.0.0).

License

MIT OR Apache-2.0