Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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. If a variable length string is desired then type_size can be specified as 'H5T_VARIABLE'.

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?