netmsgs/libnetmsgs/nmLibPack.c
int nmPackBuf(byte_t      bufSrc[],
              size_t      uCount,
              byte_t      buf[],
              size_t      bufSize,
              NMEndian_T  eEndian)
{
  _NM_CHK_MEM(bufSize, uCount);

  // safe copy 
  memmove(buf, bufSrc, uCount);

  return (int)uCount;
}
/*!
 * \brief Pack a byte buffer into the message buffer.
 *
 * The source and message buffer memory areas can overlap.
 *
 * \note  The buffer is always packed in sequential order ignoring the byte
 *        order parameter.
 *
 * \param [in] bufSrc Source buffer.
 * \param uCount      Number of bytes to copy.
 * \param [out] buf   Output message buffer.
 * \param bufSize     Size of output buffer.
 * \param eEndian     Packing order. See \ref NMEndian_T.
 *
 * \copydoc doc_return_pack_std
 */
\brief Pack a byte buffer into the message buffer.
The source and message buffer memory areas can overlap.

\note  The buffer is always packed in sequential order ignoring the byte
order parameter.

\param [in] bufSrc Source buffer.
\param uCount      Number of bytes to copy.
\param [out] buf   Output message buffer.
\param bufSize     Size of output buffer.
\param eEndian     Packing order.


\ brief Pack a byte buffer into the message buffer . The source and message buffer memory areas can overlap . \ note The buffer is always packed in sequential order ignoring the byte order parameter . \ param [ in ] bufSrc Source buffer . \ param uCount Number of bytes to copy . \ param [ out ] buf Output message buffer . \ param bufSize Size of output buffer . \ param eEndian Packing order .
int nmPackBuf(byte_t      bufSrc[],
              size_t      uCount,
              byte_t      buf[],
              size_t      bufSize,
              NMEndian_T  eEndian)
{
  _NM_CHK_MEM(bufSize, uCount);
  memmove(buf, bufSrc, uCount);
  return (int)uCount;
}
int nmPackBuf ( byte_t bufSrc [ ] , size_t uCount , byte_t buf [ ] , size_t bufSize , NMEndian_T eEndian ) { _NM_CHK_MEM ( bufSize , uCount ) ; memmove ( buf , bufSrc , uCount ) ; return ( int ) uCount ; }
\brief Pack a byte buffer into the message buffer.
\ brief Pack a byte buffer into the message buffer .
// safe copy 