This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this 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