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
bytesisNULLthen a zero-filled buffer of lengthnumBytesis appended. - numBytes:
The number of bytes from
bytesto 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
appendByteappendBytes(const OSData *)ensureCapacityfreegetBytesNoCopy()getBytesNoCopy(unsigned int, unsigned int)getCapacitygetCapacityIncrementgetLengthinitWithBytesinitWithBytesNoCopyinitWithCapacityinitWithData(const OSData *)initWithData(const OSData *, unsigned int, unsigned int)isEqualTo(const OSData *)isEqualTo(const OSMetaClassBase *)isEqualTo(const OSString *)isEqualTo(const void *, unsigned int)serializesetCapacityIncrementwithByteswithBytesNoCopywithCapacitywithData(const OSData *)withData(const OSData *, unsigned int, unsigned int)