Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 993 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 993 Bytes

memory-pager

crates.io version build status downloads docs.rs docs

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