Sign in Join
FPDoc Onlineexperiment

TCustomBufDataset.AllocRecordBuffer function

Member of TCustomBufDatasetprotectedIn unit BufDataset

Allocates resources for a record buffer.

Declaration

pascal
function AllocRecordBuffer: TRecordBuffer; override

Function result

Record buffer allocated for the dataset.

Description

AllocRecordBuffer is an overridden TRecordBuffer function used to allocate resources needed for a record buffer in the dataset. AllocRecordBuffer implements the method defined in the ancestor class.

AllocRecordBuffer calls AllocMem to reserve the memory used as the return value for the method. AllocRecordBuffer sets the record buffer size to the number of bytes determined by the RecordSize, BookmarkSize, and CalcFieldsSize properties. AllocRecordBuffer calls the InitRecord method to initialize the values in the new record buffer, including the NullMask for the record.

See also

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