Datatype.fixedString

Datatype fixedString(size_t length) static

Creates a fixed-length string datatype.

This creates a null-padded fixed-length string type suitable for storing C-style character arrays (char[N]).

Parameters

lengthNumber of characters (bytes) in the string.

Returns

A new Datatype instance for fixed-length strings.

Throws

HDF5Exception if datatype creation fails.