Contents

getCapacity

Returns the total number of bytes the OSData can store without reallocating.

Declaration

virtual unsigned int getCapacity() const;

Return Value

The total number bytes the OSData can store without reallocating.

Overview

OSData objects grow when full to accommodate additional bytes. See getCapacityIncrement and ensureCapacity.

OSData objects created or initialized to use a shared buffer do not make use of this attribute, and return -1 from this function.

See Also

Miscellaneous