help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TStrListMaker.Init

Instantiate a new instance of TStrListMaker

Declaration

Source position: objects.pp line 548

constructor TStrListMaker.Init(

  AStrSize: Sw_Word;

  AIndexSize: Sw_Word

);

Description

The Init constructor creates a new instance of the TstrListMaker object. It allocates AStrSize bytes on the heap to hold all the strings you wish to store. It also allocates enough room for AIndexSize key description entries (of the type TStrIndexrec).

AStrSize must be large enough to contain all the strings you wish to store. If not enough memory is allocated, other memory will be overwritten. The same is true for AIndexSize : maximally AIndexSize strings can be written to the stream.

Errors

None.

See also

TObject.Init

  

Construct (initialize) a new object

TStrListMaker.Done

  

Clean up the instance and free all related memory.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505