Table.create
void create(hid_t locId, string tableName, string tableTitle,
hsize_t numFields, hsize_t numRecords, size_t recordSize,
const(char *)[] fieldNames, const size_t[] fieldOffsets,
const hid_t[] fieldTypes, hsize_t chunkSize,
void * fillData, int compress, const void * data)Creates a new table.
Parameters
locId | Location identifier (file or group handle) |
tableName | Name of the table to create |
tableTitle | Title/description of the table |
numFields | Number of fields in the table |
numRecords | Initial number of records (usually 0) |
recordSize | Size of each record in bytes |
fieldNames | Array of field names |
fieldOffsets | Array of field offsets within the record |
fieldTypes | Array of field datatype identifiers |
chunkSize | Chunk size for storage |
fillData | Fill data for uninitialized records (can be null) |
compress | Compression level (0 = none, 1-9 = gzip levels) |
data | Initial data to write (can be null) |
Throws
HDF5Exception if table creation fails
void create(T)(hid_t locId, string tableName, string tableTitle,
hsize_t chunkSize = 10, int compress = 0) if (is(T == struct))Creates a new table from a D struct type.
This template method automatically extracts field information from the struct type to create the table schema.
Parameters
T | The struct type representing a table record |
locId | Location identifier (file or group handle) |
tableName | Name of the table to create |
tableTitle | Title/description of the table |
chunkSize | Chunk size for storage (default: 10) |
compress | Compression level (0 = none, default: 0) |
Throws
HDF5Exception if table creation fails