#[repr(C)]pub struct BSSmallBlockAllocator {Show 14 fields
pub __base: IMemoryStore,
pub pools: [Pool; 64],
pub lock: BSCriticalSection,
pub addressSpaceSize: u32,
pub pad1234: u32,
pub allocBase: *mut u8,
pub blockPageCommitMin: *mut u8,
pub blockPageCommit: *mut u8,
pub megaBlockPageList: *mut MegaBlockPage,
pub megaBlockCurrAlloc: *mut MegaBlockPage,
pub totalFreeBlockPages: u32,
pub allowDecommits: bool,
pub pad1265: u8,
pub pad1266: u16,
}
Expand description
The main small block allocator struct.
Fields§
§__base: IMemoryStore
§pools: [Pool; 64]
§lock: BSCriticalSection
§addressSpaceSize: u32
§pad1234: u32
§allocBase: *mut u8
§blockPageCommitMin: *mut u8
§blockPageCommit: *mut u8
§megaBlockPageList: *mut MegaBlockPage
§megaBlockCurrAlloc: *mut MegaBlockPage
§totalFreeBlockPages: u32
§allowDecommits: bool
§pad1265: u8
§pad1266: u16
Trait Implementations§
Source§impl Clone for BSSmallBlockAllocator
impl Clone for BSSmallBlockAllocator
Source§fn clone(&self) -> BSSmallBlockAllocator
fn clone(&self) -> BSSmallBlockAllocator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BSSmallBlockAllocator
impl Debug for BSSmallBlockAllocator
Source§impl Default for BSSmallBlockAllocator
impl Default for BSSmallBlockAllocator
Source§impl PartialEq for BSSmallBlockAllocator
impl PartialEq for BSSmallBlockAllocator
impl StructuralPartialEq for BSSmallBlockAllocator
Auto Trait Implementations§
impl Freeze for BSSmallBlockAllocator
impl RefUnwindSafe for BSSmallBlockAllocator
impl !Send for BSSmallBlockAllocator
impl !Sync for BSSmallBlockAllocator
impl Unpin for BSSmallBlockAllocator
impl UnwindSafe for BSSmallBlockAllocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more