2023-03-10 10:32:50 +00:00
|
|
|
// This file is part of noxos and licensed under the MIT open source license
|
2023-01-25 00:42:04 +00:00
|
|
|
|
2023-01-25 11:22:27 +00:00
|
|
|
#ifndef NOX_MEMORY_H
|
|
|
|
#define NOX_MEMORY_H
|
2023-01-25 00:42:04 +00:00
|
|
|
|
|
|
|
#include "stdtypes.h"
|
|
|
|
|
2023-02-12 16:45:42 +00:00
|
|
|
void memory_copy (void* source, void* destination, uint32_t num);
|
|
|
|
void memory_set (void* destination, uint8_t data, uint32_t num);
|
|
|
|
bool memory_compare (void* a, void* b, uint32_t num);
|
|
|
|
void* memory_allocate (uint64_t size);
|
|
|
|
void memory_free (void* address);
|
|
|
|
void memory_allocator_init (void* base);
|
2023-03-02 15:51:20 +00:00
|
|
|
void memory_hexdump (uint8_t* address, uint64_t num);
|
2023-01-25 00:42:04 +00:00
|
|
|
|
2023-01-25 11:22:27 +00:00
|
|
|
#endif //NOX_MEMORY_H
|