C/carbonate.h
//  ****************************************************************************
/// Returns the size of the allocated buffer that is usable by the user.
///
Returns the size of the allocated buffer that is usable by the user.
Returns the size of the allocated buffer that is usable by the user .
inline
size_t carbon_size(const Hg_msg_t* p_msg)
{
  carbon_t* p_base = carbon_ptr(p_msg);
  if (!p_base)
    return 0;
  uint32_t size = 0;
  memcpy(&size, p_base, 4);
  return size >> k_size_shift;
}
inline size_t carbon_size ( const Hg_msg_t * p_msg ) { carbon_t * p_base = carbon_ptr ( p_msg ) ; if ( ! p_base ) return 0 ; uint32_t size = 0 ; memcpy ( & size , p_base , 4 ) ; return size >> k_size_shift ; }
Returns the size of the allocated buffer that is usable by the user.
Returns the size of the allocated buffer that is usable by the user .