Crate block_allocator [] [src]

A thread-safe, reusable allocator of fixed-size blocks

(c) 2015 Rick Richardson

Provides fixed size, buffers out of a pre-allocated arena.


  • Max number of buffers that can be provided is u32::MAX - 1
  • Max size of a buffer is u32::MAX
  • Currently only works on 64 bit architectures
  • (all of these due to a present limitation in Atomic types)



Allocator Provides fixed-sized buffers from a pre-allocated arena specified at creation Current limitations: Max number of buffers it can produce is u32::MAX - 1 Multiple allocators may be in use at any time, but their buffers may not be used interchangibly :)