Sign in Join
FPDoc Onlineexperiment

TMemDataset.CheckMarker procedure

Member of TMemDatasetprotectedIn unit MemDs

Checks for the specified marker in the internal stream for the in-memory dataset.

Declaration

pascal
procedure CheckMarker(F: TStream; Marker: Integer)

Arguments

F

Stream to examine in the method.

Marker

Marker expected in the stream.

Description

CheckMarker is a procedure used to verify that the specified Marker value is found at the current position in the specified stream. Markers are used to separate field definitions from the record data in the stream. A marker is also used to indicate the end of the stream. CheckMarker is used when loading a from a file or stream in the Open method, or when Active is changed to True.

CheckMarker reads a value with the size in MarkerSize from the stream in F. RaiseError is called if a value with the required size cannot be read from the current stream position. If the value is not the same as Marker, RaiseError is called for the error condition.

See also

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