rustbuddy 0.1.0

Rust implementation of the buddy memory allocation algorithm
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 5 items with examples
  • Size
  • Source code size: 26.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • notbdu

Rust Buddy Memory Allocator

An implementation of the buddy allocation algorithm in rust.

Usage

extern crate rustbuddy;

// Create a new instance w/ n levels
let mut buddy = rustbuddy::BuddyAllocator::new(4);

// Allocate a single block (returns the index offset of the block)
let offset = buddy.allocate(1);

// Dump the tree for debugging
println!("{}", buddy.dump());