memory-pager

Crates.iomemory-pager
lib.rsmemory-pager
version0.9.0
sourcesrc
created_at2018-03-26 07:12:17.583822
updated_at2019-09-07 10:24:31.967844
descriptionAccess memory using small fixed size buffers
homepage
repositoryhttps://github.com/datrs/memory-pager
max_upload_size
id57546
size39,226
Maintainers (github:datrs:maintainers)

documentation

https://docs.rs/memory-pager

README

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

Commit count: 72

cargo fmt