pub mod allocator;
pub mod pool;
use core::ptr::NonNull;
pub struct MemoryStats {
pub used: usize,
pub total: usize,
pub fragmentation: f32,
pub alloc_count: usize,
pub free_count: usize,
}
#[repr(C)]
pub struct MemoryBlock {
pub next: Option<NonNull<MemoryBlock>>,
pub size: usize,
pub is_allocated: bool,
}
impl MemoryBlock {
pub const SIZE: usize = core::mem::size_of::<Self>();
}