mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-11 14:00:38 +02:00
16 lines
314 B
C++
16 lines
314 B
C++
#pragma once
|
|
#include <cstddef>
|
|
#include <stdint.h>
|
|
|
|
namespace FEXCore::Memory {
|
|
struct MemRegion {
|
|
void *Ptr;
|
|
size_t Offset;
|
|
size_t Size;
|
|
|
|
bool operator==(void *rhs) const { return Ptr == rhs; }
|
|
bool contains(uint64_t Addr) const { return Addr >= Offset && Addr < (Offset + Size); }
|
|
};
|
|
}
|
|
|