mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 15:00:53 +02:00
Now that we're using fmt, we can make the API itself non-allocating and allow passing any kind of character buffer to it.
25 lines
592 B
C++
25 lines
592 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <cstdio>
|
|
#include <memory>
|
|
#include <string_view>
|
|
|
|
namespace FEXCore {
|
|
class JITSymbols final {
|
|
public:
|
|
JITSymbols();
|
|
~JITSymbols();
|
|
|
|
void Register(const void *HostAddr, uint64_t GuestAddr, uint32_t CodeSize);
|
|
void Register(const void *HostAddr, uint32_t CodeSize, std::string_view Name);
|
|
void RegisterNamedRegion(const void *HostAddr, uint32_t CodeSize, std::string_view Name);
|
|
void RegisterJITSpace(const void *HostAddr, uint32_t CodeSize);
|
|
|
|
private:
|
|
using FILEPtr = std::unique_ptr<FILE, decltype(&std::fclose)>;
|
|
|
|
FILEPtr fp;
|
|
};
|
|
}
|