Struct std::SecureAllocator
struct SecureAllocator {
struct SlabAllocator slab;
}Fields
underlying slab
Methods
A secure allocator of count slots of obj_size bytes each
(heap-backed, double-free-detecting: SlabAllocator::new).
One slot for size bytes aligned to align (a power of two; 0 is
taken as 1). null when every slot is in use, size > obj_size, or
align is above slab.max_align() (at most 8).
Zero and free an object slot (null: no-op).
Return number of available slots.
Zero all memory and destroy the backing buffer.
= drop()