Memory buffer functions

:Associate with "Memory buffer functions" More...

Functions

UINT8 bitrev (UINT8 b)
void bitrevlin (UINT8 *buf, int numbytes)
int getbit (const UINT8 *array, INT32 index)
int getbitn (const UINT8 *array, INT32 index)
void memswap (void *vb1, void *vb2, int count)
void packbits (UINT8 *dest, UINT8 *source, int count)
void packbitsr (UINT8 *dest, UINT8 *source, int count)
void putbit (UINT8 *array, INT32 index, int value)
void revbuffer (void *vbuf, int cols)
template<class _BUF >
void SwapBytes (_BUF *alist, INT32 num)
double SwapBytes (double &value)
UINT64 SwapBytes (UINT64 &value)
INT64 SwapBytes (INT64 &value)
float SwapBytes (float &value)
UINT32 SwapBytes (UINT32 &value)
INT32 SwapBytes (INT32 &value)
UINT16 SwapBytes (UINT16 &value)
INT16 SwapBytes (INT16 &value)
UINT8 SwapBytes (UINT8 &value)
INT8 SwapBytes (INT8 &value)
char SwapBytes (char &value)
void SwapBytes2 (void *data, int num)
void SwapBytes4 (void *data, int num)
void SwapBytes8 (void *data, int num)
void SwapDataInBuffer (void *data, INT32 NumItems, int ItemSize)

Detailed Description

:Associate with "Memory buffer functions"


Function Documentation

UINT8 bitrev ( UINT8  b  )  [inline]

Reverse order of bits in a single byte.

void bitrevlin ( UINT8 buf,
int  numbytes 
)

Reverse bits for array.

int getbit ( const UINT8 array,
INT32  index 
) [inline]

Get a value from a bit array.

Returns:
0 or 1.
Parameters:
array Bit array
index Index into array
int getbitn ( const UINT8 array,
INT32  index 
) [inline]

Get a value from a bit array, returns 0 if array is NULL.

Returns:
0 or 1 (0 if array is NULL).
Parameters:
array Bit array, can be NULL
index Index into array
void memswap ( void *  vb1,
void *  vb2,
int  count 
) [inline]

Swap data in two buffers.

void packbits ( UINT8 dest,
UINT8 source,
int  count 
)

Pack TRUE/FALSE values from 8-bit array into bit array with least-significant bit as first bit.

Non-zero values in the 8-bit array will be written as '1', zero values will be written as '0'.

void packbitsr ( UINT8 dest,
UINT8 source,
int  count 
)

Pack TRUE / FALSE values from 8-bit array into bit array with MOST-significannt bit as first bit.

Non-zero values in the 8-bit array will be written as '1', zero values will be written as '0'.

void putbit ( UINT8 array,
INT32  index,
int  value 
) [inline]

Set entry in a bit array to a specified value.

Parameters:
array Bit array
index Index into array
value Value to set to (any non-zero value assumed to be 1)
void revbuffer ( void *  vbuf,
int  cols 
)

Reverse the order of values in UINT8 array.

template<class _BUF >
void SwapBytes ( _BUF *  alist,
INT32  num 
) [inline]

Swap bytes.

Parameters:
alist Array of items to swap
num Number of items in array
double SwapBytes ( double &  value  )  [inline]

Swap bytes - double.

UINT64 SwapBytes ( UINT64 value  )  [inline]

Swap bytes - 64 bit unsigned.

INT64 SwapBytes ( INT64 value  )  [inline]

Swap bytes - 64 bit signed.

float SwapBytes ( float &  value  )  [inline]

Swap bytes - float.

UINT32 SwapBytes ( UINT32 value  )  [inline]

Swap bytes - 32 bit unsigned.

INT32 SwapBytes ( INT32 value  )  [inline]

Swap bytes - 32 bit signed.

UINT16 SwapBytes ( UINT16 value  )  [inline]

Swap bytes - 16 bit unsigned.

INT16 SwapBytes ( INT16 value  )  [inline]

Swap bytes - 16 bit signed.

UINT8 SwapBytes ( UINT8 value  )  [inline]

Swap bytes - 8 bit unsigned.

INT8 SwapBytes ( INT8 value  )  [inline]

Swap bytes - 8 bit signed.

char SwapBytes ( char &  value  )  [inline]

Swap bytes - character.

void SwapBytes2 ( void *  data,
int  num 
) [inline]

Swap bytes in array of 2-byte values (INT16, UINT16).

Parameters:
data Array of items to swap
num Number of items
void SwapBytes4 ( void *  data,
int  num 
) [inline]

Swap bytes in array of 4-byte values (float, INT32, UINT32).

Parameters:
data Array of items to swap
num Number of items
void SwapBytes8 ( void *  data,
int  num 
) [inline]

Swap bytes in array of 8-byte values (double, INT64, UINT64).

C++ GENERATING_DOXYGEN_OUTPUT

Parameters:
data Array of items to swap
num Number of items
void SwapDataInBuffer ( void *  data,
INT32  NumItems,
int  ItemSize 
)

Swap data in a buffer given number of items and size.

Parameters:
data Array of items to swap
NumItems Number of items in the array
ItemSize Size of item to swap

Generated on Sun Oct 7 21:33:03 2012 for TNTsdk 2012 by  doxygen 1.6.1