C API for BALTECH SDK

§ brp_FlashFS_ReadRecords()

brp_errcode brp_FlashFS_ReadRecords ( brp_protocol  protocol,
unsigned  FileId,
unsigned  StartRecord,
unsigned  RecordCount,
brp_FlashFS_ReadRecords_RecordList_Entry **  RecordList,
size_t *  RecordList_len,
brp_mempool mempool 
)

This command reads one or more records from a file.

If the file contains less records than specified, the response only returns the available number of records.

Parameters
[in]protocolused to execute the command
[in]FileIdFile ID of the file to read from.
[in]StartRecordFirst record number to read.
[in]RecordCountNumber of records to read. Should not be larger than the return value of brp_FlashFS_GetFileSize().
[out]RecordList
[out]RecordList_len
[in]mempoolis used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool