mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-04 05:01:06 -05:00
22 lines
431 B
C
22 lines
431 B
C
|
#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
|