netmsgs/libnetmsgs/nmLibPack.c
static inline void packlittle(byte_t *p, size_t size, byte_t buf[])
{
  size_t    n = 0;
  size_t    k = size - 1;

  // reverse copy
  while( n < size )
  {
    buf[n++] = p[k--];
  }
}
/*!
 * \brief Pack an element into the message buffer in little-endian byte order.
 *
 * Big-Endian Host Version
 *
 * \param [in] p    Byte pointer to typecasted element to be packed.
 * \param size      Byte size of element to pack.
 * \param [out] buf Output message buffer.
 */
\brief Pack an element into the message buffer in little-endian byte order.
Big-Endian Host Version

\param [in] p    Byte pointer to typecasted element to be packed.
\param size      Byte size of element to pack.
\param [out] buf Output message buffer.
\ brief Pack an element into the message buffer in little - endian byte order . Big - Endian Host Version \ param [ in ] p Byte pointer to typecasted element to be packed . \ param size Byte size of element to pack . \ param [ out ] buf Output message buffer .
static inline void packlittle(byte_t *p, size_t size, byte_t buf[])
{
  size_t    n = 0;
  size_t    k = size - 1;
  while( n < size )
  {
    buf[n++] = p[k--];
  }
}
static inline void packlittle ( byte_t * p , size_t size , byte_t buf [ ] ) { size_t n = 0 ; size_t k = size - 1 ; while ( n < size ) { buf [ n ++ ] = p [ k -- ] ; } }
\brief Pack an element into the message buffer in little-endian byte order.
\ brief Pack an element into the message buffer in little - endian byte order .
// reverse copy