IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
igros::multiboot::memoryMap_t Class Referencefinal

Multiboot 1 memory map view (entries have variable size). More...

#include <multiboot/multiboot.hpp>

Classes

struct  sentinel_t
 Memory map end marker. More...
class  iterator_t
 Memory map entries iterator. More...

Public Member Functions

constexpr memoryMap_t () noexcept=default
 Empty memory map.
constexpr memoryMap_t (const igros_byte_t *const begin, const igros_usize_t length) noexcept
 Memory map of given length.
constexpr auto begin () const noexcept -> iterator_t
 First entry.
constexpr auto end () const noexcept -> sentinel_t
 Memory map end.

Private Attributes

const igros_byte_t * mBegin {nullptr}
 First entry.
const igros_byte_t * mEnd {nullptr}
 Memory map end.

Detailed Description

Multiboot 1 memory map view (entries have variable size).

Definition at line 401 of file multiboot.hpp.

Constructor & Destructor Documentation

◆ memoryMap_t()

igros::multiboot::memoryMap_t::memoryMap_t ( const igros_byte_t *const begin,
const igros_usize_t length )
inlineconstexprnoexcept

Memory map of given length.

Parameters
beginFirst entry address
lengthMemory map length in bytes

Definition at line 455 of file multiboot.hpp.

Member Function Documentation

◆ begin()

auto igros::multiboot::memoryMap_t::begin ( ) const->iterator_t
inlinenodiscardconstexprnoexcept

First entry.

Returns
Iterator to first entry

Definition at line 462 of file multiboot.hpp.

◆ end()

auto igros::multiboot::memoryMap_t::end ( ) const->sentinel_t
inlinenodiscardconstexprnoexcept

Memory map end.

Returns
Sentinel of memory map end

Definition at line 468 of file multiboot.hpp.

Member Data Documentation

◆ mBegin

const igros_byte_t* igros::multiboot::memoryMap_t::mBegin {nullptr}
private

First entry.

Definition at line 403 of file multiboot.hpp.

◆ mEnd

const igros_byte_t* igros::multiboot::memoryMap_t::mEnd {nullptr}
private

Memory map end.

Definition at line 404 of file multiboot.hpp.


The documentation for this class was generated from the following file: