#[repr(C)]pub struct MegaBlockPage {
pub mem: [u8; 2088960],
pub blockPages: [BlockPageInternal; 255],
pub left: Option<NonNull<MegaBlockPage>>,
pub right: Option<NonNull<MegaBlockPage>>,
pub freeBlockPages: *mut BlockPage,
pub numFreeBlockPages: u16,
pub nextBlockPageAlloc: u16,
pub decommitted: bool,
pub pad1FFFFD: u8,
pub pad1FFFFE: u16,
}
Expand description
Represents a mega block page.
Fields§
§mem: [u8; 2088960]
§blockPages: [BlockPageInternal; 255]
§left: Option<NonNull<MegaBlockPage>>
§right: Option<NonNull<MegaBlockPage>>
§freeBlockPages: *mut BlockPage
§numFreeBlockPages: u16
§nextBlockPageAlloc: u16
§decommitted: bool
§pad1FFFFD: u8
§pad1FFFFE: u16
Implementations§
Source§impl MegaBlockPage
impl MegaBlockPage
Sourcepub unsafe fn alloc_zeroed() -> Option<NonNull<Self>>
pub unsafe fn alloc_zeroed() -> Option<NonNull<Self>>
§Safety
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MegaBlockPage
impl RefUnwindSafe for MegaBlockPage
impl !Send for MegaBlockPage
impl !Sync for MegaBlockPage
impl Unpin for MegaBlockPage
impl UnwindSafe for MegaBlockPage
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