Internet Direct (Indy) Version 9.0.1 Beta
TIdBuffer.RemoveXBytes
Removes bytes of data from the dynamic memory buffer.

procedure RemoveXBytes(const AByteCount: integer);
Parameters
const AByteCount: integer
Number of bytes to be removed.

Description
RemoveXBytes is a procedure that instructs TIdBuffer to remove the number of bytes in AByteCount from the dynamic memory buffer.

RemoveXBytes shifts the contents of Memory so that only data bytes AByteCount through the Size of the buffer are available for further processing. When ByteCount and Size are the same, the memory buffer in Memory is reset using Clear.

RemoveXBytes will raise an EIdException when ABytes is larger than the Size of the TIdBuffer.

Note: Data in Memory should be handled in the manner appropriate to the application prior to calling RemoveXBytes.