netmsgs/libnetmsgs/nmLibPack.c
int nmPackU32(uint_t val, byte_t buf[], size_t bufSize, NMEndian_T eEndian)
{
  static size_t fvalLen = NMFVAL_LEN_U32;     // message field value length

  _NM_CHK_MEM(bufSize, fvalLen);

  switch( eEndian )
  {
    case NMEndianLittle:
      PACKLITTLE(val, buf);
      break;
    case NMEndianNative:
      PACKNATIVE(val, buf);
      break;
    case NMEndianBig:
    default:
      PACKBIG(val, buf);
      break;
  }

  return (int)fvalLen;
}
/*!
 * \brief Pack an unsigned 32-bit integer into the message buffer.
 *
 * \copydoc doc_params_pack_std
 * \copydoc doc_return_pack_std 
 */
\brief Pack an unsigned 32-bit integer into the message buffer.
\ brief Pack an unsigned 32 - bit integer into the message buffer .
int nmPackU32(uint_t val, byte_t buf[], size_t bufSize, NMEndian_T eEndian)
{
  static size_t fvalLen = NMFVAL_LEN_U32;     
  _NM_CHK_MEM(bufSize, fvalLen);
  switch( eEndian )
  {
    case NMEndianLittle:
      PACKLITTLE(val, buf);
      break;
    case NMEndianNative:
      PACKNATIVE(val, buf);
      break;
    case NMEndianBig:
    default:
      PACKBIG(val, buf);
      break;
  }
  return (int)fvalLen;
}
int nmPackU32 ( uint_t val , byte_t buf [ ] , size_t bufSize , NMEndian_T eEndian ) { static size_t fvalLen = NMFVAL_LEN_U32 ; _NM_CHK_MEM ( bufSize , fvalLen ) ; switch ( eEndian ) { case NMEndianLittle : PACKLITTLE ( val , buf ) ; break ; case NMEndianNative : PACKNATIVE ( val , buf ) ; break ; case NMEndianBig : default : PACKBIG ( val , buf ) ; break ; } return ( int ) fvalLen ; }
\brief Pack an unsigned 32-bit integer into the message buffer.
\ brief Pack an unsigned 32 - bit integer into the message buffer .
// message field value length