appendByte
Appends a single byte value to the OSData object's internal data buffer a specified number of times.
Declaration
virtual bool appendByte(
unsigned charbyte,
unsigned intnumBytes);Parameters
- byte:
The byte value to append.
- numBytes:
The number of copies of
byteto append.
Return Value
true if the new data was successfully added, false if not.
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
appendBytes(const OSData *)appendBytes(const void *, unsigned int)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)