function ExtractXBytesFromBuffer(const AByteCount: Integer): string; virtual;
Parameters
const AByteCount: Integer
Number of bytes to remove.
Returns
String - Data removed from the Indy buffer.
Description
ExtractXBytesFromBuffer is a String function used to read and remove data from the Indy buffer. ExtractXBytesFromBuffer will read up to the number of bytes specified in AByteCount from the Indy buffer. Data read is removed from the Indy buffer and used as the return value for the function.
ExtractXBytesFromBuffer will raise an exception if AByteCount is larger than the length of the Indy buffer.