all repos — mgba @ dd1f1bc79e71700a279acd4c43effb235e6aa6ce

mGBA Game Boy Advance Emulator

src/util/memory.h (view raw)

 1#ifndef MEMORY_H
 2#define MEMORY_H
 3
 4#include <unistd.h>
 5
 6#define MEMORY_READ 1
 7#define MEMORY_WRITE 2
 8
 9void* anonymousMemoryMap(size_t size);
10void* fileMemoryMap(int fd, size_t size, int flags);
11void mappedMemoryFree(void* memory, size_t size);
12
13#endif