Indy 9
Remove
See Also
Removes bytes of data from the memory buffer.
Description
Remove is a procedure used to to remove the number of bytes in AByteCount from the memory buffer. Remove 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.

Remove will raise an EIdNotEnoughDataInBuffer exception when AByteCount is larger than the Size of Memory in TIdBuffer.

Removes triggers the protected OnBytesRemoved event handler, when assigned, after data has been removed from the Memory in TIdBuffer.

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


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.