H5T.set_size

Set size of data type in bytes

Syntax

H5T.set_size(type_id,type_size)

Description

H5T.set_size(type_id,type_size) sets the total size in bytes for the data type specified by type_id. The string 'H5T_VARIABLE' can also be used if a variable length string is desired.

Examples

Create a variable length string with null termination.

type_id = H5T.copy('H5T_C_S1');
H5T.set_size(type_id,'H5T_VARIABLE');
H5T.set_strpad(type_id,'H5T_STR_NULLTERM');

See Also

Was this topic helpful?