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_strpad

Set storage mechanism for string data type

Syntax

H5T.set_strpad(type_id,storage_type)

Description

H5T.set_strpad(type_id,storage_type) defines the storage mechanism for the string data type identified by type_id. The storage type may be one of the following values.

'H5T_STR_NULLTERM'Null terminated
'H5T_STR_NULLPAD'Padded with zeros
'H5T_STR_SPACEPAD'Padded with spaces

Examples

Create a ten-character string data type with space padding.

type_id = H5T.copy('H5T_C_S1');
H5T.set_size(type_id,10);
H5T.set_strpad(type_id,'H5T_STR_SPACEPAD');

See Also

Was this topic helpful?