Is there an equivalent of realloc() to grow the size of an object’s allocated space from a memory pool?
Or do I need to allocate a second object of a larger size and copy it across?
In fact, how do you define the size of an object to allocate on the fly?
Variable length text string is being received across a file descriptor.
In ‘conventional C’, I would initially allocate a block of data (say 512 bytes) and keep count how long my string is. When I reach the end of the block, I realloc() the block to a bigger size and continue receiving the string.
Is this possible with memory pools? Or do I just fix a giant size (8k?20k?100k?) and hope that I never run out?