ASN1C C/C++ Common Runtime
ASN1C v7.7.x
|
#include <ASN1TOctStr.h>
Public Member Functions | |
ASN1TDynOctStr () | |
ASN1TDynOctStr (OSUINT32 _numocts, const OSOCTET *_data) | |
ASN1TDynOctStr (const ASN1DynOctStr &_os) | |
ASN1TDynOctStr (const ASN1TDynOctStr &_os) | |
ASN1TDynOctStr (const char *cstring) | |
ASN1TDynOctStr & | operator= (const char *cstring) |
EXTRTMETHOD ASN1TDynOctStr & | operator= (const ASN1TDynOctStr &octet) |
EXTRTMETHOD const char * | toString (OSCTXT *pctxt) const |
EXTRTMETHOD const char * | toHexString (OSCTXT *pctxt) const |
EXTRTMETHOD int | nCompare (OSUINT32 n, const ASN1TDynOctStr &o) const |
Dynamic octet string. This is the base class for generated C++ data type classes for unsized OCTET string's.
|
inline |
The default constructor creates an empty octet string.
|
inline |
This constructor initializes the octet string to contain the given data values.
_numocts | - Number of octet in the octet string. |
_data | - The binary octet data values. |
|
inline |
This constructor initializes the octet string to contain the given data values.
_os | - C octet string structure. |
|
inline |
Copy constructor.
_os | - C++ octet string structure. |
|
inline |
This constructor initializes the octet string to contain the given data values. In this case, it is initializes the string to contain the characters in a null-terminated C character string.
cstring | - C null-terminated string. |
EXTRTMETHOD int ASN1TDynOctStr::nCompare | ( | OSUINT32 | n, |
const ASN1TDynOctStr & | o | ||
) | const |
This method compares the first n octets of this octet string with the given octet string.
n | - Number of octets to compare |
o | - Octet string for comparison |
|
inline |
This assignment operator sets the octet string to contain the characters in a null-terminated C character string. For example, myOctStr = "a
char string";
cstring | - C null-terminated string. |
References ASN1DynOctStr, operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
EXTRTMETHOD ASN1TDynOctStr& ASN1TDynOctStr::operator= | ( | const ASN1TDynOctStr & | octet | ) |
This assignment operator sets the octet string to contain the characters from the given C++ octet string object.
octet | - Octet string object reference |
EXTRTMETHOD const char* ASN1TDynOctStr::toHexString | ( | OSCTXT * | pctxt | ) | const |
This method converts the binary octet string to a hexadecimal string representation.
pctxt | - Pointer to a context structure. |
EXTRTMETHOD const char* ASN1TDynOctStr::toString | ( | OSCTXT * | pctxt | ) | const |
This method converts the binary octet string to a human-readable representation. The string is first checked to see if it contains all printable characters. If this is the case, the characters in the string are returned; otherwise, the string contents are converted into a hexadecimal character string.
pctxt | - Pointer to a context structure. |