You are here: Symbol Reference > FileSignal Namespace > Structs, Records, Enums > FileSignal.TLastFrameCheck Enumeration
DSP Master VCL
ContentsIndex
PreviousUpNext
FileSignal.TLastFrameCheck Enumeration

Defines how to handle data at the end of file.

Pascal
TLastFrameCheck = (
  lfcZeroPadded,
  lfcLastFullBlock,
  lfcAdjustLength
);
Members 
Description 
lfcZeroPadded 
The last block of data will be zero padded. The length property will not be changed. 
lfcLastFullBlock 
The reading of the file will stop when the last full block of data has been read from the file. The length property will not be changed. With lfcZeroPadded the very last block read from the file will contain zeros padded after the position exceeding the size of the file. This padded zeros can affect any averaging process working on the data blocks. By selecting lfcLastFullBlock the IsEndOfFile will return true for the last completely full data block. The Pull method calls IsEndOfFile to check for the end of file. 
lfcAdjustLength 
The Length property and the size of the data block to be read will be adjusted to allow reading less than specified Length samples. The user must reset the Length property back to its orignal when read from the file again at some other position. 

Defines how to handle data at the end of the file, when the data is being read with the Update method, which advances the read cursor automatically. The sample count left to be read may be less then the Length specified and there are several options what to do.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!