Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
API::Offsets Class Reference

#include <Offsets.h>

Public Member Functions

 Offsets (const Offsets &)=delete
 
 Offsets (Offsets &&)=delete
 
Offsetsoperator= (const Offsets &)=delete
 
Offsetsoperator= (Offsets &&)=delete
 
void Init (std::unordered_map< std::string, intptr_t > &&offsets_dump, std::unordered_map< std::string, BitField > &&bitfields_dump)
 
DWORD64 GetAddress (const void *base, const std::string &name)
 
LPVOID GetAddress (const std::string &name)
 
LPVOID GetDataAddress (const std::string &name)
 
BitField GetBitField (const void *base, const std::string &name)
 
BitField GetBitField (LPVOID base, const std::string &name)
 

Static Public Member Functions

static OffsetsGet ()
 

Private Member Functions

 Offsets ()
 
 ~Offsets ()=default
 
BitField GetBitFieldInternal (const void *base, const std::string &name)
 

Private Attributes

DWORD64 module_base_
 
DWORD64 data_base_
 
std::unordered_map< std::string, intptr_toffsets_dump_
 
std::unordered_map< std::string, BitFieldbitfields_dump_
 

Detailed Description

Definition at line 9 of file Offsets.h.

Constructor & Destructor Documentation

◆ Offsets() [1/3]

API::Offsets::Offsets ( const Offsets & )
delete

◆ Offsets() [2/3]

API::Offsets::Offsets ( Offsets && )
delete

◆ Offsets() [3/3]

API::Offsets::Offsets ( )
private

Definition at line 6 of file Offsets.cpp.

◆ ~Offsets()

API::Offsets::~Offsets ( )
privatedefault

Member Function Documentation

◆ Get()

Offsets & API::Offsets::Get ( )
static

Definition at line 37 of file Offsets.cpp.

◆ GetAddress() [1/2]

LPVOID API::Offsets::GetAddress ( const std::string & name)

Definition at line 63 of file Offsets.cpp.

◆ GetAddress() [2/2]

DWORD64 API::Offsets::GetAddress ( const void * base,
const std::string & name )

Definition at line 50 of file Offsets.cpp.

◆ GetBitField() [1/2]

BitField API::Offsets::GetBitField ( const void * base,
const std::string & name )

Definition at line 89 of file Offsets.cpp.

◆ GetBitField() [2/2]

BitField API::Offsets::GetBitField ( LPVOID base,
const std::string & name )

Definition at line 94 of file Offsets.cpp.

◆ GetBitFieldInternal()

BitField API::Offsets::GetBitFieldInternal ( const void * base,
const std::string & name )
private

Definition at line 99 of file Offsets.cpp.

◆ GetDataAddress()

LPVOID API::Offsets::GetDataAddress ( const std::string & name)

Definition at line 76 of file Offsets.cpp.

◆ Init()

void API::Offsets::Init ( std::unordered_map< std::string, intptr_t > && offsets_dump,
std::unordered_map< std::string, BitField > && bitfields_dump )

Definition at line 43 of file Offsets.cpp.

◆ operator=() [1/2]

Offsets & API::Offsets::operator= ( const Offsets & )
delete

◆ operator=() [2/2]

Offsets & API::Offsets::operator= ( Offsets && )
delete

Member Data Documentation

◆ bitfields_dump_

std::unordered_map<std::string, BitField> API::Offsets::bitfields_dump_
private

Definition at line 40 of file Offsets.h.

◆ data_base_

DWORD64 API::Offsets::data_base_
private

Definition at line 37 of file Offsets.h.

◆ module_base_

DWORD64 API::Offsets::module_base_
private

Definition at line 36 of file Offsets.h.

◆ offsets_dump_

std::unordered_map<std::string, intptr_t> API::Offsets::offsets_dump_
private

Definition at line 39 of file Offsets.h.


The documentation for this class was generated from the following files: