Topic Path: Symbol Reference > Classes > TIdBuffer Class > TIdBuffer Methods > Create Constructor > Create Constructor (TIdBytes, Integer)
ContentsIndexHome
PreviousUpNext
TIdBuffer.Create Constructor (TIdBytes, Integer)

Constructor for the object instance.

constructor Create(
    const ABytes: TIdBytes; 
    const ALength: Integer = -1
); overload;
Parameters 
Description 
ABytes 
Initial values for the buffer.
 
ALength 
Size to pre-allocate for the buffer. Default value is -1. 

Create is an overloaded constructor for the object instance. Create calls the inherited parameter-less constructor. 

ABytes indicates the initial values to use in the internal storage for the buffer. 

ALength indicates teh Size to pre-allocate for the buffer. The default value is -1, and indicates that the actual length of the values in ABytes should be assigned as the Size for the buffer. The values in ABytes are copied through assignment to the buffers' internal storage. When ALength contains zero or a positive number, the value in ALength is stored as the Size for the buffer and CopyTIdBytes is called to load values in ABytes into the internal storage.

TIdBuffer.Create

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