1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Extended autocomplete info

This commit is contained in:
Brian Fiete 2020-10-08 09:41:05 -07:00
parent 080a5483ae
commit b28a87136f
9 changed files with 270 additions and 111 deletions

View file

@ -241,6 +241,13 @@ public:
return retVal;
}
char* AllocString(const StringImpl& str)
{
char* ptr = (char*)AllocBytes(str.length() + 1);
memcpy(ptr, str.c_str(), str.length() + 1);
return ptr;
}
};
class BumpAllocator : public BumpAllocatorT<0x2000>