Crates.io | memory-pager |
lib.rs | memory-pager |
version | 0.9.0 |
source | src |
created_at | 2018-03-26 07:12:17.583822 |
updated_at | 2019-09-07 10:24:31.967844 |
description | Access memory using small fixed size buffers |
homepage | |
repository | https://github.com/datrs/memory-pager |
max_upload_size | |
id | 57546 |
size | 39,226 |
Access memory using small fixed size buffers. Adapted from mafintosh/memory-pager.
extern crate memory_pager;
let mut pager = memory_pager::Pager::new(1024);
let page = pager.get_mut_or_alloc(3);
assert_eq!(page.len(), 1024);
$ cargo add memory-pager
MIT OR Apache-2.0