Crate random_access_memory [] [src]

Continuously read,write to memory using random offsets and lengths. Adapted from mafintosh/random-access-memory.

Usage

This example is not tested
extern crate random_access_memory as ram;

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

Structs

Sync

Main constructor.

SyncMethods

Methods that have been implemented to provide synchronous access to memory buffers. These should generally be kept private, but exposed to prevent leaking internals.