Struct multiboot::information::MemoryEntry
source · #[repr(C, packed(1))]pub struct MemoryEntry { /* private fields */ }
Expand description
Multiboot format of the MMAP buffer.
Note that size is defined to be at -4 bytes in multiboot.
Implementations§
source§impl MemoryEntry
impl MemoryEntry
sourcepub fn new(base_addr: PAddr, length: PAddr, ty: MemoryType) -> Self
pub fn new(base_addr: PAddr, length: PAddr, ty: MemoryType) -> Self
Create a new entry from the given data.
Note that this will always create a struct that has a size of 20 bytes.
sourcepub fn base_address(&self) -> PAddr
pub fn base_address(&self) -> PAddr
Get base of memory region.
sourcepub fn memory_type(&self) -> MemoryType
pub fn memory_type(&self) -> MemoryType
Is the region type valid RAM?
Trait Implementations§
source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more