#include <gospecialarrays.h>
Provides an array of nibbles (4-bit units).
- Attention
- THERE IS A BUG IN THIS CLASS; IT IS A T L E A S T NOT THREADSAFE!
- Author
- Christian Gosch
- Date
- 6.8.2001
- See also
- goResolutionManager
◆ goNibbleArray()
goNibbleArray::goNibbleArray |
( |
goSize_t |
numberOfNibbles | ) |
|
|
inline |
- Parameters
-
numberOfNibbles | Size of the array in nibbles |
◆ get()
goUInt8 goNibbleArray::get |
( |
goSize_t |
nibbleNumber | ) |
|
|
inline |
- Parameters
-
nibbleNumber | Index of the nibble to be returned |
- Returns
- Value of the nibble with index
nibbleNumber
. Only the lower 4 bits of the return value are used.
◆ operator[]()
goUInt8 goNibbleArray::operator[] |
( |
goSize_t |
nibbleNumber | ) |
|
|
inline |
- Parameters
-
nibbleNumber | Index of the nibble to be returned |
- Returns
- Value of the nibble with index
nibbleNumber
. Only the lower 4 bits of the return value are used.
◆ set()
void goNibbleArray::set |
( |
goSize_t |
i, |
|
|
goUInt8 |
nibble |
|
) |
| |
|
inline |
- Parameters
-
i | Index of the nibble to be addressed |
nibble | Value to set the nibble to (only the lower 4 bits may be used). |
The documentation for this class was generated from the following file: