TmpMenu/src/gta_pointers_layout_info.hpp
2023-04-14 17:54:07 +01:00

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*);
};
}