14 lines
495 B
C++
14 lines
495 B
C++
#pragma once
|
|
#include "pointers.hpp"
|
|
|
|
namespace big
|
|
{
|
|
struct gta_pointers_layout_info
|
|
{
|
|
// get the beginning and the end of what we need to save / load
|
|
inline static constexpr size_t offset_of_cache_begin_field = offsetof(big::pointers, m_gta);
|
|
inline static constexpr size_t offset_of_cache_end_field = offsetof(big::pointers, m_gta) + sizeof(gta_pointers);
|
|
inline static constexpr size_t field_count = (offset_of_cache_end_field - offset_of_cache_begin_field) / sizeof(void*);
|
|
};
|
|
}
|