Skip to content

datrs/random-access-memory

 
 

random-access-memory

crates.io version build status downloads docs.rs docs

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

Usage

use random_access_memory as ram;

let mut file = ram::Sync::default();
file.write(0, b"hello").await.unwrap();
file.write(5, b" world").await.unwrap();
let text = file.read(0, 11).await.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

About

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages