![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cValT.h>
Static Public Member Functions | |
template<class TYPE > | |
static bool | IsFilledQty (const TYPE *pArray, ITERATE_t nBlocks, TYPE nFillValue) noexcept |
template<class TYPE > | |
static bool | IsFilledSize (const void *pArray, size_t nArraySizeBytes, TYPE nFillValue) noexcept |
template<class TYPE > | |
static bool | IsEqualQty (const TYPE *pArray1, const TYPE *pArray2, ITERATE_t nBlocks) noexcept |
template<class TYPE > | |
static COMPARE_t | CompareQty (const TYPE *pArray1, const TYPE *pArray2, ITERATE_t nBlocks) noexcept |
template<class TYPE > | |
static void | FillQty (TYPE *pArray, ITERATE_t nBlocks, TYPE nFillValue=0) noexcept |
template<class TYPE > | |
static void | ZeroQty (TYPE *pArray, ITERATE_t nBlocks) noexcept |
template<class TYPE > | |
static void | FillSize (void *pArray, size_t nArraySizeBytes, TYPE nFillValue) noexcept |
template<class TYPE > | |
static void | CopyQty (TYPE *pDst, const TYPE *pSrc, ITERATE_t nBlocks) noexcept |
template<class TYPE > | |
static void | CopyQtyRev (TYPE *pDst, const TYPE *pSrc, ITERATE_t nBlocks) noexcept |
template<class TYPE > | |
static void | ReverseArray (TYPE *pArray, size_t nArraySizeBytes) noexcept |
static void __stdcall | ReverseArrayBlocks (void *pArray, size_t nArraySizeBytes, size_t iBlockSize) |
template<> | |
void | FillQty (BYTE *pData, ITERATE_t nBlocks, BYTE bFill) noexcept |
template<> | |
void | FillSize (void *pData, size_t nSizeBlock, BYTE bFill) noexcept |
Helper functions for array of values of some TYPE in memory.
|
inlinestaticnoexcept |
Compare 2 arrays of a TYPE. like memcmp.
|
inlinestaticnoexcept |
Forward Copy array of values. like memcpy.
|
inlinestaticnoexcept |
Reverse Copy array of values. like memmove.
|
inlinestaticnoexcept |
FillMemory BYTEs like memset()
|
inlinestaticnoexcept |
fill an array with a repeating TYPE nFillValue. Ignore negative value for nBlocks
|
inlinestaticnoexcept |
Fill a block of memory with a repeating TYPE nFillValue by size_t not quantity. Similar to the native memset() FillMemory If TYPE is not BYTE this may leave unaligned block at the end.
|
inlinestaticnoexcept |
FillMemory BYTEs like memset()
|
inlinestaticnoexcept |
Test 2 arrays of a TYPE. like memcmp.
|
inlinestaticnoexcept |
Is this array filled with a repeating value ?
|
inlinestaticnoexcept |
Is this array filled with a repeating value ? _countof()
|
inlinestaticnoexcept |
reverse the order of an array of a TYPE. similar to cMem::ReverseArrayBlocks but iBlockSize==sizeof(TYPE) TYPE = BYTE = reverse bytes in a block. similar to htonl(), etc. Use ReverseType<> if TYPE = BYTE and nArraySizeBytes <= largest intrinsic type size?
|
static |
reverse the order of an array of blocks/objects. similar to ReverseArray() but without the TYPE. where nBlockSize == sizeof(TYPE)
|
inlinestaticnoexcept |
fill an array with a repeating TYPE 0.