DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
A template class for bit manipulations. More...
Static Public Member Functions | |
static void | copyMem (const T *src, T *dest, const size_t count) |
copies specified number of elements from source to destination. More... | |
static void | moveMem (const T *src, T *dest, const size_t count) |
moves specified number of elements from source to destination. More... | |
static void | setMem (T *dest, const T value, const size_t count) |
sets specified number of elements in destination memory to a defined value More... | |
static void | zeroMem (T *dest, const size_t count) |
sets specified number of elements in destination memory to zero More... | |
A template class for bit manipulations.
This class is used to perform platform independent operations on typed memory areas.
|
inlinestatic |
copies specified number of elements from source to destination.
Both src and dest must be aligned according to T's align requirements. These memory areas must not overlap!
src | pointer to source memory |
dest | pointer to destination memory |
count | number of elements to be copied |
Referenced by DiMonoCopyTemplate< T >::copy().
|
inlinestatic |
moves specified number of elements from source to destination.
Both src and dest must be aligned according to T's align requirements. If src and dest are not equal, they must be at least sizeof(T) bytes apart. These memory areas may overlap.
src | pointer to source memory |
dest | pointer to destination memory |
count | number of elements to be moved |
|
inlinestatic |
sets specified number of elements in destination memory to a defined value
dest | pointer to destination memory |
value | value to be set |
count | number of elements to be set |
|
inlinestatic |
sets specified number of elements in destination memory to zero
dest | pointer to destination memory |
count | number of elements to be set to zero |
Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::determineUsedValues(), and DiColorPixelTemplate< T3 >::Init().