![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cMem.h>
Public Member Functions | |
| cMemBlock () noexcept | |
| cMemBlock (const void *pData, size_t nSize) noexcept | |
| cMemBlock (const cMemBlock &block) noexcept | |
| cMemBlock (const cMemBlock *pBlock) noexcept | |
| size_t | get_DataSize () const noexcept |
| void * | get_Data () const noexcept |
| BYTE * | get_DataBytes () const noexcept |
| char * | get_DataA () const noexcept |
| operator const BYTE * () const noexcept | |
| bool | isValidPtr () const noexcept |
| bool | IsValidIndex (size_t i) const noexcept |
| bool | IsValidIndex2 (size_t i) const noexcept |
| bool | IsValidPtr (const void *p) const noexcept |
| bool | IsValidPtr2 (const void *p) const noexcept |
| bool | IsZeros () const noexcept |
| bool | IsEqualData (const void *pData, size_t nSize) const noexcept |
| bool | IsEqualData (const cMemBlock *pData) const noexcept |
| bool | IsEqualData (const cMemBlock &data) const noexcept |
| BYTE * | GetOffset (size_t nOffset) const |
| const void * | get_DataEnd () const noexcept |
| void | put_DataPtr (void *pStart) noexcept |
| void | put_Size (size_t nSize) noexcept |
| void | SetBlock (void *pData, size_t nSize) noexcept |
| void | SetEmptyBlock () noexcept |
| void | InitZeros () noexcept |
| StrLen_t | ConvertToString (char *pszDst, StrLen_t iDstSizeMax) const |
Static Public Member Functions | |
| static COMPARE_t __stdcall | Compare (const void *pData1, size_t iLen1, const void *pData2, size_t iLen2) |
Protected Attributes | |
| size_t | m_nSize |
| size_t of m_pData in bytes. May be determined at runtime. More... | |
| void * | m_pData |
A pointer to memory block/blob with unknown ownership. heap, stack or const. don't free on destruct. May be static init?
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
static |
|
inlinenoexcept |
Might be nullptr. that's OK.
|
inlinenoexcept |
Get as a char pointer.
|
inlinenoexcept |
Get as a BYTE pointer.
|
inlinenoexcept |
Never write to this pointer.
|
inlinenoexcept |
|
inline |
Get as a byte pointer.
|
inlinenoexcept |
compare blocks of data.
compare blocks of data.
|
inlinenoexcept |
compare blocks of data.
|
inlinenoexcept |
Is i inside the known valid range for the block?
|
inlinenoexcept |
Is i inside the known valid range for the block? or at end?
|
inlinenoexcept |
Is this (probably) valid to use/read/write. not nullptr. Use cMem::IsValid to know more.
|
inlinenoexcept |
Is p inside the known valid range for the block? Inclusive = Can be equal to end.
|
inlinenoexcept |
Is p inside the known valid range for the block? Exclusive = Cant be equal to end!
|
inlinenoexcept |
|
inlinenoexcept |
Get as a BYTE pointer.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
protected |
size_t of m_pData in bytes. May be determined at runtime.
|
protected |