Modules§
Structs§
- Chunk
- A wholesale block of memory obtained via direct_alloc out of which the MemoryPool carves
the
*mut u8slots handed to consumers. - Direct
Allocator - Free
Slot - A section of continuous free memory within a Chunk.
- Memory
Pool - Memory pool manager that preallocates memory in chunks of DEFAULT_GLOBAL_MB_ALLOCATION bytes
and hands out
*mut u8pointers whose sizes are rounded up to the next power of two.
Constants§
- MIN_
SLOT_ SIZE - Smallest slot size handed out by the pool. Every slot is a power of two and at least this big, so every slot boundary within a Chunk stays a multiple of this value.
Statics§
Traits§
Functions§
- as_
slice - as_
slice_ mut - cast_
data_ to_ ptr - cast_
to_ nonnull - copy_
from_ slice - copy_
simd_ slice - direct_
alloc ⚠ - direct_
dealloc ⚠ - sizeof
- zero_
memory
Type Aliases§
- Chunk
List - Bookkeeping list used to track the allocated Chunk instances of a MemoryPool.
- Free
List - Bookkeeping list used to track the sections of continuous free memory within a Chunk.