mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 16:07:52 -05:00
21 lines
431 B
C
21 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
|