mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-04-23 01:01:26 +00:00
22 lines
398 B
C++
22 lines
398 B
C++
#pragma once
|
|
#include <vector>
|
|
|
|
struct Function
|
|
{
|
|
struct Block
|
|
{
|
|
size_t base{};
|
|
size_t size{};
|
|
|
|
// scratch
|
|
size_t projectedSize{ static_cast<size_t>(-1) };
|
|
};
|
|
|
|
size_t base{};
|
|
size_t size{};
|
|
std::vector<Block> blocks{};
|
|
|
|
size_t SearchBlock(size_t address) const;
|
|
static Function Analyze(const void* code, size_t size, size_t base);
|
|
};
|