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
locId | Location identifier (file or group handle) |
tableName | Name of the table |
start | Starting record index |
numRecords | Number of records to read |
recordSize | Size of each record in bytes |
fieldOffsets | Array of field offsets |
fieldSizes | Array of field sizes |
data | Buffer 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
T | The struct type representing a table record |
locId | Location identifier (file or group handle) |
tableName | Name of the table |
start | Starting record index |
data | Array to receive the records |
Throws
HDF5Exception if read fails