geode/loader/dobby/source/PlatformUnifiedInterface/StdMemory.h

22 lines
431 B
C
Raw Normal View History

2022-07-30 12:24:03 -04:00
#ifndef UNIFIED_INTERFACE_STD_MEMORY_H
#define UNIFIED_INTERFACE_STD_MEMORY_H
#include "common_header.h"
enum MemoryPermission { kNoAccess, kRead, kReadWrite, kReadWriteExecute, kReadExecute };
typedef struct _MemoryRange {
void *address;
size_t length;
} MemoryRange;
typedef struct _MemoryRegion {
void *address;
size_t length;
MemoryPermission permission;
} MemoryRegion;
typedef MemoryRegion MemoryPage;
#endif