CBufferString(const char* string, bool allow_heap_allocation = true) :
CBufferString(allow_heap_allocation) {
insert(0, string);
}
const char* insert(int index, const char* buf, int count = -1, bool ignore_alignment = false) {
using fn = const char* (__fastcall*)(void*, int, const char*, int, bool);
static auto func = MEM::FindPattern125(TIER0_DLL, CS_XOR("40 53 56 57 41 57 48 83 EC ? 4C 63 FA")).as<fn>();
return func(this, index, buf, count, ignore_alignment);
}
Exception thrown at 0x0000000000000000 in cs2.exe: 0xC0000005: Access violation executing at location 0x0000000000000000.
CBufferString(allow_heap_allocation) {
insert(0, string);
}
const char* insert(int index, const char* buf, int count = -1, bool ignore_alignment = false) {
using fn = const char* (__fastcall*)(void*, int, const char*, int, bool);
static auto func = MEM::FindPattern125(TIER0_DLL, CS_XOR("40 53 56 57 41 57 48 83 EC ? 4C 63 FA")).as<fn>();
return func(this, index, buf, count, ignore_alignment);
}
Exception thrown at 0x0000000000000000 in cs2.exe: 0xC0000005: Access violation executing at location 0x0000000000000000.