C/carbonate.h
//  ****************************************************************************
/// Returns the type of message for which the buffer is allocated.
///
Returns the type of message for which the buffer is allocated.
Returns the type of message for which the buffer is allocated .
inline
Hg_type_t carbon_type(const Hg_msg_t* p_msg)
{
  carbon_t* p_base = carbon_ptr(p_msg);
  if (!p_base)
    return k_invalid_type;
  Hg_type_t type = 0;
  memcpy(&type, p_base + k_type_offset, 4);
  return type;
}
inline Hg_type_t carbon_type ( const Hg_msg_t * p_msg ) { carbon_t * p_base = carbon_ptr ( p_msg ) ; if ( ! p_base ) return k_invalid_type ; Hg_type_t type = 0 ; memcpy ( & type , p_base + k_type_offset , 4 ) ; return type ; }
Returns the type of message for which the buffer is allocated.
Returns the type of message for which the buffer is allocated .