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

  _NM_CHK_MEM(bufSize, fvalLen);

  buf[0] = val & 0xff;

  return (int)fvalLen;
}
/*!
 * \brief Pack an unsigned 8-bit byte into the message buffer.
 *
 * \copydoc doc_params_pack_std
 * \copydoc doc_return_pack_std 
 */
\brief Pack an unsigned 8-bit byte into the message buffer.
\ brief Pack an unsigned 8 - bit byte into the message buffer .
int nmPackU8(byte_t val, byte_t buf[], size_t bufSize, NMEndian_T eEndian)
{
  static size_t fvalLen = NMFVAL_LEN_U8;      
  _NM_CHK_MEM(bufSize, fvalLen);
  buf[0] = val & 0xff;
  return (int)fvalLen;
}
int nmPackU8 ( byte_t val , byte_t buf [ ] , size_t bufSize , NMEndian_T eEndian ) { static size_t fvalLen = NMFVAL_LEN_U8 ; _NM_CHK_MEM ( bufSize , fvalLen ) ; buf [ 0 ] = val & 0xff ; return ( int ) fvalLen ; }
\brief Pack an unsigned 8-bit byte into the message buffer.
\ brief Pack an unsigned 8 - bit byte into the message buffer .
// message field value length