Skip to content

TCollection.Store

Write collection to a stream.

Declaration

Source position: objects.pp line 457

default 
  procedure Store(var S: TStream);

Description

Store writes the collection to the stream S. It does this by writing the current Count, Limit and Delta to the stream, and then writing each item to the stream.

The contents of the stream are then suitable for instantiating another collection with Load .

For an example, see TCollection.Load .

Errors

Errors returned are those by TStream.Put .

See also

Name Description
TCollection.Load Initialize a new collection and load collection from a stream.
TCollection.PutItem Put one item on the stream