removeBuffer(IOStreamBuffer *)
Removes a buffer from the stream. Buffers cannot be removed while the stream is open, as this will change the buffer IDs of existing buffers.
Declaration
virtual IOReturn removeBuffer(
IOStreamBuffer *buffer);Parameters
- buffer:
A pointer to an IOStreamBuffer object in the stream.
Return Value
Returns kIOReturnSuccess if the buffer was removed, or kIOReturnNotFound if the buffer was not in this stream.