GString.allocatedLen

the number of bytes that can be stored in the string before it needs to be reallocated. May be larger than len.

struct GString
size_t allocatedLen;