Sign in Join
FPDoc Onlineexperiment

TAbstractObjectReader.ReadSet function

Member of TAbstractObjectReaderpublicIn unit Classes

Reads a set from the stream.

Declaration

pascal
function ReadSet(EnumType: Pointer): Integer; virtual; abstract

Description

This method is called by the streaming system if it expects to read a set from the stream (i.e. after ReadValue returned a valuetype of vaSet). The return value is the contents of the set, encoded in a bitmask the following way:

For each (enumerated) value in the set, the bit corresponding to the ordinal value of the enumerated value should be set. i.e. as 1 shl ord(value).

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.