OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Collaboration diagram for Utility Functions:

Functions

epr_uint epr_get_data_type_size (EPR_EDataTypeId data_type_id)
 
const char * epr_data_type_id_to_str (EPR_EDataTypeId data_type_id)
 

Detailed Description

Function Documentation

◆ epr_data_type_id_to_str()

const char* epr_data_type_id_to_str ( EPR_EDataTypeId  data_type_id)

Gets the 'C' data type string for the given data type.

Converts the given data type identifier to a string representing the C-type of the data type.

Parameters
data_type_idthe data type identifier. If the identifier can not be converted, an empty string "" is returned.
Returns
the C-type string

Definition at line 104 of file epr_core.c.

◆ epr_get_data_type_size()

epr_uint epr_get_data_type_size ( EPR_EDataTypeId  data_type_id)

Gets the size in bytes for an element of the given data type.

Determines the length of the given data type identifier.

Parameters
data_type_idthe data type identifier.
Returns
the the length of the data type identifier. If the data type identifier is unknown, e_tid_unknown is returned.

Definition at line 148 of file epr_core.c.