Memory buffer functions

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

Functions

char SwapBytes (char &value)
INT8 SwapBytes (INT8 &value)
UINT8 SwapBytes (UINT8 &value)
INT16 SwapBytes (INT16 &value)
UINT16 SwapBytes (UINT16 &value)
INT32 SwapBytes (INT32 &value)
UINT32 SwapBytes (UINT32 &value)
float SwapBytes (float &value)
INT64 SwapBytes (INT64 &value)
UINT64 SwapBytes (UINT64 &value)
double SwapBytes (double &value)
template<class _BUF> void SwapBytes (_BUF *alist, INT32 num)
void SwapBytes2 (void *data, int num)
void SwapBytes4 (void *data, int num)
void SwapBytes8 (void *data, int num)
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)
void SwapDataInBuffer (void *data, INT32 NumItems, int ItemSize)

Detailed Description

:Associate with "Memory buffer functions"


Function Documentation

UINT8 bitrev UINT8  b  )  [inline]
 

< GENERATING_DOXYGEN_OUTPUT Reverse order of bits in a single byte.

Definition at line 222 of file membuf.h.

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

Definition at line 242 of file membuf.h.

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

Definition at line 252 of file membuf.h.

void memswap void *  vb1,
void *  vb2,
int  count
[inline]
 

Swap data in two buffers.

Definition at line 287 of file membuf.h.

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)

Definition at line 336 of file membuf.h.

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

Definition at line 175 of file membuf.h.

double SwapBytes double &  value  )  [inline]
 

Swap bytes - double.

Definition at line 162 of file membuf.h.

UINT64 SwapBytes UINT64 value  )  [inline]
 

Swap bytes - 64 bit unsigned.

Definition at line 150 of file membuf.h.

INT64 SwapBytes INT64 value  )  [inline]
 

Swap bytes - 64 bit signed.

Definition at line 138 of file membuf.h.

float SwapBytes float &  value  )  [inline]
 

Swap bytes - float.

Definition at line 128 of file membuf.h.

UINT32 SwapBytes UINT32 value  )  [inline]
 

Swap bytes - 32 bit unsigned.

Definition at line 118 of file membuf.h.

INT32 SwapBytes INT32 value  )  [inline]
 

Swap bytes - 32 bit signed.

Definition at line 108 of file membuf.h.

UINT16 SwapBytes UINT16 value  )  [inline]
 

Swap bytes - 16 bit unsigned.

Definition at line 99 of file membuf.h.

INT16 SwapBytes INT16 value  )  [inline]
 

Swap bytes - 16 bit signed.

Definition at line 90 of file membuf.h.

UINT8 SwapBytes UINT8 value  )  [inline]
 

Swap bytes - 8 bit unsigned.

Definition at line 83 of file membuf.h.

INT8 SwapBytes INT8 value  )  [inline]
 

Swap bytes - 8 bit signed.

Definition at line 76 of file membuf.h.

char SwapBytes char &  value  )  [inline]
 

Swap bytes - character.

Definition at line 69 of file membuf.h.

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

Definition at line 184 of file membuf.h.

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

Definition at line 193 of file membuf.h.

void SwapBytes8 void *  data,
int  num
[inline]
 

C++.

Parameters:
data  Array of items to swap
num  Number of items

Definition at line 202 of file membuf.h.

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 Thu Aug 12 06:27:42 2004 for TNTsdk by doxygen 1.3.4-20031026