Crate random_access_memory [−] [src]
   8
Continuously read,write to memory using random offsets and lengths.
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");
$ cargo add random-access-memory
- [x] Sync implementation.
- [ ] Async implementation (wait for futures 1.0.0).
Methods that have been implemented to provide synchronous access to memory buffers. These should generally be kept private, but exposed to prevent leaking internals.