2023-09-24 05:47:58 +08:00
|
|
|
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
#pragma pack(push, 4)
|
|
|
|
namespace rage
|
|
|
|
{
|
|
|
|
class rlJson
|
|
|
|
{
|
|
|
|
uint32_t unk0; // 0x00
|
|
|
|
uint32_t unk1; // 0x04
|
2024-07-16 09:59:37 +08:00
|
|
|
char* m_Buffer; // 0x08
|
|
|
|
uint32_t m_Curlen;// 0x10
|
|
|
|
uint32_t m_Maxlen;// 0x14
|
2023-09-24 05:47:58 +08:00
|
|
|
uint32_t unk4; // 0x18
|
2024-07-16 09:59:37 +08:00
|
|
|
uint32_t m_Flags; // 0x1C
|
|
|
|
uint8_t m_Flags2; // 0x20
|
2023-09-24 05:47:58 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
rlJson(char* _buffer, uint32_t _length) :
|
2024-07-16 09:59:37 +08:00
|
|
|
m_Buffer(_buffer),
|
|
|
|
m_Maxlen(_length)
|
2023-09-24 05:47:58 +08:00
|
|
|
{
|
|
|
|
unk0 = 0;
|
|
|
|
unk1 = 0;
|
2024-07-16 09:59:37 +08:00
|
|
|
m_Curlen = 0;
|
2023-09-24 05:47:58 +08:00
|
|
|
unk4 = 1;
|
2024-07-16 09:59:37 +08:00
|
|
|
m_Flags = 0;
|
|
|
|
m_Flags2 = 0;
|
2023-09-24 05:47:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
inline char* GetBuffer() const
|
|
|
|
{
|
2024-07-16 09:59:37 +08:00
|
|
|
return m_Buffer;
|
2023-09-24 05:47:58 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
static_assert(sizeof(rage::rlJson) == 0x24);
|
|
|
|
}
|
|
|
|
#pragma pack(pop)
|