Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5T.set_pad

Set padding type for least and most significant bits

Syntax

H5T.set_pad(type_id,lsb,msb)

Description

H5T.set_pad(type_id,lsb,msb) sets the padding type for the least and most-significant bits. type_id is the identifier of the data type. lsb specifies the padding type for least-significant bits; msb for most-significant bits. Valid padding types are H5T_PAD_ZERO, H5T_PAD_ONE, or H5T_PAD_BACKGROUND (leave background alone).

Examples

type_id = H5T.copy('H5T_NATIVE_INT');
lsb = H5ML.get_constant_value('H5T_PAD_ONE');
msb = H5ML.get_constant_value('H5T_PAD_ZERO');
H5T.set_pad(type_id,lsb,msb);

See Also

Was this topic helpful?