PROLEAD
A Probing-Based Leakage Detection Tool for Hardware and Software
Loading...
Searching...
No Matches
memory_region.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace mulator
6{
7
9 {
13 struct
14 {
15 bool read;
16 bool write;
17 bool execute;
19
20 bool contains(u32 address, u32 len) const
21 {
22 return (address >= offset) && ((u64)(address - offset) + len <= (u64)size);
23 }
24
25 u8* get(u32 address) const
26 {
27 return bytes + (address - offset);
28 }
29 };
30
31}
uint64_t u64
Definition: types.h:13
uint32_t u32
Definition: types.h:12
uint8_t u8
Definition: types.h:10
struct mulator::MemoryRegion::@2 access
u8 * get(u32 address) const
Definition: memory_region.h:25
bool contains(u32 address, u32 len) const
Definition: memory_region.h:20