# do0ks/memre architecture

> Architecture diagram of the GitHub repository do0ks/memre, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/do0ks/memre
- Repository: https://github.com/do0ks/memre

## Overview

MemRE is a Windows process memory editor. The user selects or attaches to a target, scans and refines values, then works with addresses and pointer paths; Unreal helpers resolve engine version and names/offsets. The README documents hotkeys, live logs, and Cheat Engine/native table export. The main implementation is a very large, partially excerpted main.cpp, so links among its less-visible capabilities and helpers are limited to documented behavior where call sites were not shown.

Main entry points: [`main.cpp`](https://github.com/do0ks/memre/blob/master/main.cpp) (Editor UI), [`UENameResolver/NameResolver.cpp`](https://github.com/do0ks/memre/blob/master/UENameResolver/NameResolver.cpp) (Name resolution), [`GOffsets/GOffsets.cpp`](https://github.com/do0ks/memre/blob/master/GOffsets/GOffsets.cpp) (Signature scanning), [`Declarations.h`](https://github.com/do0ks/memre/blob/master/Declarations.h) (Scan data types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Editor workflow"]
  node_editor["Editor UI<br/>[main.cpp]"]
  node_scan["Value scans<br/>[main.cpp]"]
  node_results["Scan results<br/>[main.cpp]"]
  node_addressbook["Address tables<br/>[main.cpp]"]
  node_pointers["Pointer scanning<br/>[main.cpp]"]
  node_exports["Table export<br/>[main.cpp]"]
  node_hotkeys["Hotkeys and logs<br/>[main.cpp]"]
end

subgraph group_memory["Process memory"]
  node_attach["Attach and inject<br/>[main.cpp]"]
  node_remote["Process memory<br/>[main.cpp]"]
  node_scanmodels["Scan data types<br/>[Declarations.h]"]
end

subgraph group_unreal["Unreal discovery"]
  node_version["UE version detection"]
  node_signatures["Signature scanning<br/>[GOffsets.cpp]"]
  node_names["Name resolution<br/>[NameResolver.cpp]"]
  node_offsetsui["Automatic offsets<br/>[main.cpp]"]
end

subgraph group_support["Shared support"]
  node_utils["UI utilities<br/>[Utils.cpp]"]
end

node_user(("User"))
node_target["Target process"]

node_user -->|"uses"| node_editor
node_editor -.->|"selects target"| node_attach
node_attach -->|"attaches or injects"| node_target
node_attach -.->|"opens process"| node_remote
node_editor -->|"starts scans"| node_scan
node_scan -.->|"reads memory"| node_remote
node_scan -.->|"uses types"| node_scanmodels
node_scan -->|"produces candidates"| node_results
node_editor -->|"updates view"| node_results
node_editor -.->|"manages addresses"| node_addressbook
node_editor -->|"starts pointer scan"| node_pointers
node_pointers -.->|"reads memory"| node_remote
node_editor -->|"exports tables"| node_exports
node_editor -->|"configures"| node_hotkeys
node_editor -.->|"detects engine version"| node_version
node_editor -.->|"resolves names"| node_names
node_names -->|"searches signatures"| node_signatures
node_signatures -->|"scans process memory"| node_remote
node_editor -->|"shows offsets"| node_offsetsui
node_offsetsui -.->|"uses name resolution"| node_names
node_editor -.->|"logs messages"| node_utils

click node_editor "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_scan "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_results "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_addressbook "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_pointers "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_exports "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_hotkeys "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_attach "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_remote "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_scanmodels "https://github.com/do0ks/memre/blob/master/Declarations.h"
click node_version "https://github.com/do0ks/memre/blob/master/UEVersionScanner/UEVersionScanner.cpp"
click node_signatures "https://github.com/do0ks/memre/blob/master/GOffsets/GOffsets.cpp"
click node_names "https://github.com/do0ks/memre/blob/master/UENameResolver/NameResolver.cpp"
click node_offsetsui "https://github.com/do0ks/memre/blob/master/main.cpp"
click node_utils "https://github.com/do0ks/memre/blob/master/Utils/Utils.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_editor,node_scan,node_results,node_addressbook,node_pointers,node_exports,node_hotkeys,node_user toneBlue
class node_attach,node_remote,node_scanmodels toneAmber
class node_version,node_signatures,node_names,node_offsetsui toneMint
class node_utils toneRose
class node_target toneIndigo
```

## Components

### Editor workflow

- [Editor UI](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Value scans](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Scan results](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Address tables](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Pointer scanning](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Table export](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Hotkeys and logs](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`

### Process memory

- [Attach and inject](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Process memory](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`
- [Scan data types](https://github.com/do0ks/memre/blob/master/Declarations.h): `Declarations.h`

### Unreal discovery

- [UE version detection](https://github.com/do0ks/memre/blob/master/UEVersionScanner/UEVersionScanner.cpp): `UEVersionScanner/UEVersionScanner.cpp`
- [Signature scanning](https://github.com/do0ks/memre/blob/master/GOffsets/GOffsets.cpp): `GOffsets/GOffsets.cpp`
- [Name resolution](https://github.com/do0ks/memre/blob/master/UENameResolver/NameResolver.cpp): `UENameResolver/NameResolver.cpp`
- [Automatic offsets](https://github.com/do0ks/memre/blob/master/main.cpp): `main.cpp`

### Shared support

- [UI utilities](https://github.com/do0ks/memre/blob/master/Utils/Utils.cpp): `Utils/Utils.cpp`

### Other components

- **User**
- **Target process**

## Connections

- User → Editor UI: uses (evidence: `README.md`)
- Editor UI → Attach and inject: selects target (evidence: `main.cpp`)
- Attach and inject → Target process: attaches or injects (evidence: `main.cpp`)
- Attach and inject → Process memory: opens process (evidence: `main.cpp`)
- Editor UI → Value scans: starts scans (evidence: `main.cpp`)
- Value scans → Process memory: reads memory (evidence: `main.cpp`)
- Value scans → Scan data types: uses types (evidence: `main.cpp`)
- Value scans → Scan results: produces candidates (evidence: `README.md`)
- Editor UI → Scan results: updates view (evidence: `main.cpp`)
- Editor UI → Address tables: manages addresses (evidence: `main.cpp`)
- Editor UI → Pointer scanning: starts pointer scan (evidence: `main.cpp`)
- Pointer scanning → Process memory: reads memory (evidence: `main.cpp`)
- Editor UI → Table export: exports tables (evidence: `README.md`)
- Editor UI → Hotkeys and logs: configures (evidence: `README.md`)
- Editor UI → UE version detection: detects engine version
- Editor UI → Name resolution: resolves names
- Name resolution → Signature scanning: searches signatures (evidence: `UENameResolver/NameResolver.cpp`)
- Signature scanning → Process memory: scans process memory (evidence: `GOffsets/GOffsets.cpp`)
- Editor UI → Automatic offsets: shows offsets (evidence: `main.cpp`)
- Automatic offsets → Name resolution: uses name resolution
- Editor UI → UI utilities: logs messages
