Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPConnection.RemoveXBytesFromBuffer
Deletes bytes from the Indy buffer.

procedure RemoveXBytesFromBuffer(const AByteCount: Integer); virtual;
Parameters
const AByteCount: Integer
The number of bytes to be removed and discarded.

Description
RemoveXBytesFromBuffer is a procedure used to remove a specified number of bytes form the Indy read buffer for the connection.

RemoveXBytesFromBuffer calls DoWork with the wmRead work mode and the specified number of bytes to update information about the read operation.

Use ExtractXBytesFromBuffer to get the value for the specified number of bytes.