Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > InputBufferToStream Method
ContentsIndexHome
PreviousUpNext
TIdIOHandler.InputBufferToStream Method

Stores the contents of the input buffer to a stream.

procedure InputBufferToStream(
    AStream: TIdStream; 
    AByteCount: Integer = -1
);
Parameters 
Description 
AStream 
Stream used to store the contents of the input buffer.
 
AByteCount 
Number of bytes to retrieve from the input buffer. Default value is -1. 

InputBufferToStream is a procedure used to store the contents of the InputBuffer buffer for the IOHandler to the stream specified in AStream. 

AStream is the TIdStream instance to use for storing the values found in the input buffer for the IOHandler. 

AByteCount indicates the number of bytes to retrieve from the input buffer. The default value is -1, and indicates that all existing data in the buffer should be retrieved. 

InputBufferToStream extracts the requested number of bytes in AByteCount from InputBuffer, and writes the values to AStream.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.