Sign in Join
FPDoc Onlineexperiment

TReader.ReadSet function

Member of TReaderpublicIn unit Classes

Read a set value from the stream.

Declaration

pascal
function ReadSet(EnumType: Pointer): Integer

Description

ReadSet reads a set of elements with type EnumType and returns them as an integer where each element is encoded in a bit of the integer. Thus, at most an enumerated type with 32 elements can be read with this function.

Errors

No checking is performed on the validity of EnumType. It is assumed to be a valid PTypeInfo pointer.

See also

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