RDR-Classes/rage/rlJson.hpp
maybegreat48 8d335c795b
Add rlMetric (#3)
* feat(metric): add rlMetric

* fix(metric): serializer fix

* feat(tls): add tlsContext

---------

Co-authored-by: maybegreat48 <email@hostname>
2023-09-23 23:47:58 +02:00

38 lines
647 B
C++

#pragma once
#include <cstdint>
#pragma pack(push, 4)
namespace rage
{
class rlJson
{
uint32_t unk0; // 0x00
uint32_t unk1; // 0x04
char* buffer; // 0x08
uint32_t curlen;// 0x10
uint32_t maxlen;// 0x14
uint32_t unk4; // 0x18
uint32_t flags; // 0x1C
uint8_t flags2; // 0x20
public:
rlJson(char* _buffer, uint32_t _length) :
buffer(_buffer),
maxlen(_length)
{
unk0 = 0;
unk1 = 0;
curlen = 0;
unk4 = 1;
flags = 0;
flags2 = 0;
}
inline char* GetBuffer() const
{
return buffer;
}
};
static_assert(sizeof(rage::rlJson) == 0x24);
}
#pragma pack(pop)