Merged the two StringBuilder classes into one

This commit is contained in:
Benoit Blanchon
2018-10-18 17:54:33 +02:00
parent 1a4515c0b9
commit ae089dcff7
9 changed files with 91 additions and 102 deletions

View File

@@ -19,7 +19,9 @@ class MemoryPool {
public:
// Allocates n bytes in the MemoryPool.
// Return a pointer to the allocated memory or NULL if allocation fails.
virtual void *alloc(size_t size) = 0;
virtual char *alloc(size_t size) = 0;
virtual char *realloc(char *oldPtr, size_t oldSize, size_t newSize) = 0;
protected:
// CAUTION: NO VIRTUAL DESTRUCTOR!