: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) |
:Associate with "Memory buffer functions"
| void bitrevlin | ( | UINT8 * | buf, | |
| int | numbytes | |||
| ) |
Reverse bits for array.
Get a value from a bit array.
| array | Bit array | |
| index | Index into array |
Get a value from a bit array, returns 0 if array is NULL.
| array | Bit array, can be NULL | |
| index | Index into array |
| void memswap | ( | void * | vb1, | |
| void * | vb2, | |||
| int | count | |||
| ) | [inline] |
Swap data in two buffers.
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'.
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'.
Set entry in a bit array to a specified value.
| 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.
| void SwapBytes | ( | _BUF * | alist, | |
| INT32 | num | |||
| ) | [inline] |
Swap bytes.
| alist | Array of items to swap | |
| num | Number of items in array |
| double SwapBytes | ( | double & | value | ) | [inline] |
Swap bytes - double.
| float SwapBytes | ( | float & | value | ) | [inline] |
Swap bytes - float.
| 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).
| 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).
| 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
| 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.
| data | Array of items to swap | |
| NumItems | Number of items in the array | |
| ItemSize | Size of item to swap |
1.6.1