ByteWriter.ensureFreeSpace

bool ensureFreeSpace(uint size)

Checks if enough free space from the current write cursor is available and reallocates if necessary.

Parameters

sizeNumber of bytes that should be available

Returns

true if at least size bytes are still available