![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cASN.h>
Public Member Functions | |
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 |
Public Attributes | |
ASN_TYPE | m_eASNTag |
ASN1 tag defines the data type, e.g. ASN_StringUTF8. ASN_TYPE byte mask. More... | |
Static Public Attributes | |
static const char *const | k_szTypeName [ASNF_MASK] |
Additional Inherited Members | |
![]() | |
static COMPARE_t __stdcall | Compare (const void *pData1, size_t iLen1, const void *pData2, size_t iLen2) |
![]() | |
size_t | m_nSize |
size_t of m_pData in bytes. May be determined at runtime. More... | |
void * | m_pData |
Store a single value of a type ASN_TYPE. Similar to a variant. ASN.1 file format loaded into memory buffer. parse ASN.1 DER encoded data structures Type-length-value structure that allows for ASN1 using DER.
|
inlinenoexcept |
|
inlinenoexcept |
Get the base type with bits masked off. ASN1 type, e.g. ASN_StringUTF8. ASN_TYPE byte mask.
|
inline |
int GrayLib::cASNBuf::get_Int | ( | ) | const |
HRESULT GrayLib::cASNBuf::GetDescriptionStr | ( | StrBuilder & | s | ) | const |
Make some text to represent the data. depends on ASN_TYPE.
|
inline |
|
inline |
is exactly the same?
|
inline |
Compare two X.509 strings, case-insensitive, and allowing for some encoding variations (but not all).
|
inline |
|
inlinenoexcept |
Is this a printable string?
|
inlinenoexcept |
Does this contain sub objects?
|
inline |
GrayLib::cASNBuf::UNITTEST_FRIEND | ( | cASN | ) |
|
static |
ASN_TYPE GrayLib::cASNBuf::m_eASNTag |
ASN1 tag defines the data type, e.g. ASN_StringUTF8. ASN_TYPE byte mask.