pub struct BlockInfo<'a> { /* private fields */ }
Available on crate feature
unstable
only.Expand description
Allows the caller of Tlsf::iter_blocks
to examine the properties of a
memory block in a Tlsf
memory pool.
Implementations§
source§impl BlockInfo<'_>
impl BlockInfo<'_>
sourcepub fn max_payload_size(&self) -> usize
pub fn max_payload_size(&self) -> usize
Get the block’s size minus the header.
This represents the maximum size of an allocation with an alignment
smaller than GRANULARITY
that can fit in this block.
sourcepub fn is_occupied(&self) -> bool
pub fn is_occupied(&self) -> bool
Get a flag indicating wthether this block is in use.