reallocSlotIfRequired method
Implementation
void reallocSlotIfRequired(int slot, int length) {
if (isPointerNull(stringSlots[slot]) || stringCapacities[slot] < length) {
if (!isPointerNull(stringSlots[slot])) freeFunc(pointerToSource(stringSlots[slot]));
stringSlots[slot] = pointerFactory(allocatorFunc(length));
stringCapacities[slot] = length;
}
}