API void
LQT_SetBlockStatus
(db, Offset, Status)
t_LQTEXT_Database *db;
unsigned long Offset;
int Status;
Purpose
Set the status of the block at a given byte offset in the data file.
Status must be either SET_BLOCK_AS_USED or SET_BLOCK_AS_FREE. In the former (USED) case, the block is marked as being in use, and can be brought into the cache with LQT_ReadBlock. In the latter case (FREE), the block is marked as being available for reuse. Since LQT_SetBlockStatus does not access the actual data, it does not have access to the block's length. It is therefore the caller's responsibility to call LQT_SetBlockstatus for each contiguous block when a block header's NumberOfBlock field is greater than one.
See Also: