mirror of https://github.com/Nonannet/copapy.git
17 lines
457 B
C
17 lines
457 B
C
#ifndef MEM_MAN_H
|
|
#define MEM_MAN_H
|
|
|
|
uint8_t *allocate_executable_memory(uint32_t num_bytes);
|
|
uint8_t *allocate_data_memory(uint32_t num_bytes);
|
|
uint8_t *allocate_buffer_memory(uint32_t num_bytes);
|
|
int mark_mem_executable(uint8_t *memory, uint32_t memory_len);
|
|
void deallocate_memory(uint8_t *memory, uint32_t memory_len);
|
|
|
|
#ifdef DATA_MEMORY_ADDR
|
|
void memcpy(void *dest, const void *src, size_t n);
|
|
#else
|
|
#include <string.h>
|
|
#endif
|
|
|
|
#endif /* MEM_MAN_H */
|