17 unstable releases
0.9.0 | Sep 7, 2019 |
---|---|
0.8.0 | Aug 31, 2018 |
0.7.0 | Jul 6, 2018 |
0.4.4 | Mar 30, 2018 |
#24 in #memory-buffer
Used in 2 crates
(via sparse-bitfield)
15KB
160 lines
memory-pager
Access memory using small fixed size buffers. Adapted from mafintosh/memory-pager.
Usage
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);
Installation
$ cargo add memory-pager
License
MIT OR Apache-2.0