Contents

appendBytes(const void *, unsigned int)

Appends a buffer of bytes to the OSData object's internal data buffer.

Declaration

virtual bool appendBytes( 
 const void *bytes, 
 unsigned intnumBytes);

Parameters

  • bytes:

    A pointer to the data to append. If bytes is NULL then a zero-filled buffer of length numBytes is appended.

  • numBytes:

    The number of bytes from bytes to append.

Return Value

true if the new data was successfully added, false on failure.

Overview

This function immediately resizes the OSData's buffer, if necessary, to accommodate the new total size.

An OSData object created "NoCopy" does not allow bytes to be appended.

See Also

Miscellaneous