![]() |
Max OS 0.3
|
Defines classes for memory input and output operations of various bit widths (8, 16, 32, 64 bits). More...
#include <cstdint>#include <cstddef>Go to the source code of this file.
Classes | |
| class | MaxOS::memory::MemIO |
| base class for all memory IO More... | |
| class | MaxOS::memory::MemIO8Bit |
| Handles 8 bit memory IO. More... | |
| class | MaxOS::memory::MemIO16Bit |
| Handles 16 bit memory IO. More... | |
| class | MaxOS::memory::MemIO32Bit |
| Handles 32 bit memory IO. More... | |
| class | MaxOS::memory::MemIO64Bit |
| Handles 64 bit memory IO. More... | |
Functions | |
| void * | memcpy (void *destination, const void *source, uint64_t num) |
| Copies a block of memory from one location to another. | |
| void * | memset (void *ptr, uint32_t value, uint64_t num) |
| Fills a block of memory with a specified value. | |
| void * | memmove (void *destination, const void *source, uint64_t num) |
| Copies a block of memory from one location to another. | |
| int | memcmp (const void *ptr1, const void *ptr2, uint64_t num) |
| Compares two blocks of memory. | |
Defines classes for memory input and output operations of various bit widths (8, 16, 32, 64 bits).
Definition in file memoryIO.h.
| int memcmp | ( | const void * | ptr1, |
| const void * | ptr2, | ||
| uint64_t | num | ||
| ) |
Compares two blocks of memory.
| ptr1 | The m_first_memory_chunk block of memory |
| ptr2 | The second block of memory |
| num | The number of bytes to compare |
Definition at line 265 of file memoryIO.cpp.
| void * memcpy | ( | void * | destination, |
| const void * | source, | ||
| uint64_t | num | ||
| ) |
Copies a block of memory from one location to another.
| destination | The destination to copy to |
| source | The source to copy from |
| num | The number of bytes to copy |
Definition at line 165 of file memoryIO.cpp.
Referenced by MaxOS::common::Buffer::copy_from(), MaxOS::common::Buffer::copy_from(), MaxOS::common::Buffer::copy_to(), MaxOS::common::Buffer::copy_to(), MaxOS::processes::SharedMessageEndpoint::read(), MaxOS::common::Buffer::resize(), and MaxOS::processes::Thread::Thread().
| void * memmove | ( | void * | destination, |
| const void * | source, | ||
| uint64_t | num | ||
| ) |
Copies a block of memory from one location to another.
| destination | The destination to copy to |
| source | The source to copy from |
| num | The number of bytes to copy |
Definition at line 235 of file memoryIO.cpp.
Referenced by MaxOS::drivers::console::VESABootConsole::scroll_up().
| void * memset | ( | void * | ptr, |
| uint32_t | value, | ||
| uint64_t | num | ||
| ) |
Fills a block of memory with a specified value.
| ptr | The pointer to the block of memory |
| value | The value to fill the block of memory with |
| num | The number of bytes to fill |
Definition at line 215 of file memoryIO.cpp.
Referenced by MaxOS::common::Buffer::clear(), MaxOS::common::Buffer::full(), and MaxOS::drivers::console::VESABootConsole::print_logo().