Table.readRecords

void readRecords(hid_t locId, string tableName, hsize_t start, hsize_t numRecords, size_t recordSize, const size_t[] fieldOffsets, const size_t[] fieldSizes, void * data)

Reads a range of records from the table.

Parameters

locIdLocation identifier (file or group handle)
tableNameName of the table
startStarting record index
numRecordsNumber of records to read
recordSizeSize of each record in bytes
fieldOffsetsArray of field offsets
fieldSizesArray of field sizes
dataBuffer to receive the data

Throws

HDF5Exception if read fails
void readRecords(T)(hid_t locId, string tableName, hsize_t start, T[] data) if (is(T == struct))

Reads a range of records from the table into a D struct array.

Parameters

TThe struct type representing a table record
locIdLocation identifier (file or group handle)
tableNameName of the table
startStarting record index
dataArray to receive the records

Throws

HDF5Exception if read fails