Routines (alphabetical) > Routines: H > HDF5 Routines > H5T_GET_OFFSET

# H5T_GET_OFFSET

The H5T_GET_OFFSET function returns the bit offset of the first significant bit in an atomic datatype. The offset is the number of bits of padding that follows the significant bits (for big endian) or precedes the significant bits (for little endian).

## Syntax

Result = H5T_GET_OFFSET(Datatype_id)

## Return Value

Returns the bit offset.

## Arguments

### Datatype_id

An integer representing the datatype’s identifier to be queried.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5T_GET_FIELDS