Table.writeRecords

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

Writes records to a specific location in the table.

Parameters

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

Throws

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

Writes records to a specific location in the table using 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 of records to write

Throws

HDF5Exception if write fails