![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cASN.h>
Public Member Functions | |
cASNBufAlloc () noexcept | |
~cASNBufAlloc () | |
void | SetEmptyBuf () |
bool | SetAlloc (ASN_TYPE eASNTag, size_t nSize, const void *pData=nullptr) |
![]() | |
cASNBuf () noexcept | |
ASN_TYPE | get_ASNType () const noexcept |
bool | isEmptyBuf () const |
bool | isSequence () const noexcept |
bool | isPrintable () const noexcept |
bool | IsEqualBuf (const cASNBuf &b) const |
bool | IsEqualStr (const void *pStr, size_t nSize) const |
bool | IsEqualStr (const cASNBuf &b) const |
void | SetEmptyBuf () |
bool | get_Bool () const |
int | get_Int () const |
HRESULT | GetDescriptionStr (StrBuilder &s) const |
UNITTEST_FRIEND (cASN) | |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
static COMPARE_t __stdcall | Compare (const void *pData1, size_t iLen1, const void *pData2, size_t iLen2) |
![]() | |
ASN_TYPE | m_eASNTag |
ASN1 tag defines the data type, e.g. ASN_StringUTF8. ASN_TYPE byte mask. More... | |
![]() | |
static const char *const | k_szTypeName [ASNF_MASK] |
![]() | |
size_t | m_nSize |
size_t of m_pData in bytes. May be determined at runtime. More... | |
void * | m_pData |
A buffer the I (maybe) own/allocated. Or it might just point into static/unknown space.
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
free it only if i allocated it.