ByteWriter.ensureFreeSpace

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

class ByteWriter
bool
ensureFreeSpace
(
uint size
)

Parameters

size uint

Number of bytes that should be available

Return Value

Type: bool

TRUE if at least size bytes are still available