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

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

  return (int)uCount;
}
/*!
 * \brief Unpack a byte buffer from 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] buf      Input message buffer.
 * \param bufSize       Size of input buffer.
 * \param [out] bufDst  Destination output buffer.
 * \param uCount        Number of bytes to copy.
 * \param eEndian       Unpacking order. See \ref NMEndian_T.
 *
 * \copydoc doc_return_unpack_std
 */
\brief Unpack a byte buffer from 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] buf      Input message buffer.
\param bufSize       Size of input buffer.
\param [out] bufDst  Destination output buffer.
\param uCount        Number of bytes to copy.
\param eEndian       Unpacking order.


\ brief Unpack a byte buffer from 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 ] buf Input message buffer . \ param bufSize Size of input buffer . \ param [ out ] bufDst Destination output buffer . \ param uCount Number of bytes to copy . \ param eEndian Unpacking order .
int nmUnpackBuf(byte_t      buf[],
                size_t      bufSize,
                byte_t      bufDst[],
                size_t      uCount,
                NMEndian_T  eEndian)
{
  _NM_CHK_MEM(bufSize, uCount);
  memmove(bufDst, buf, uCount);
  return (int)uCount;
}
int nmUnpackBuf ( byte_t buf [ ] , size_t bufSize , byte_t bufDst [ ] , size_t uCount , NMEndian_T eEndian ) { _NM_CHK_MEM ( bufSize , uCount ) ; memmove ( bufDst , buf , uCount ) ; return ( int ) uCount ; }
\brief Unpack a byte buffer from the message buffer.
\ brief Unpack a byte buffer from the message buffer .
// safe copy 