Class for ASN.1 tags.
More...
#include <yateasn.h>
|
| enum | Class { Universal = 0x00
, Application = 0x40
, Context = 0x80
, Private = 0xc0
} |
| |
| enum | Type { Primitive = 0x00
, Constructor = 0x20
} |
| |
Class for ASN.1 tags.
Class AsnTag
◆ Class
ASN.1 Tag class types enum
◆ Type
◆ AsnTag() [1/2]
◆ AsnTag() [2/2]
◆ ~AsnTag()
◆ classType() [1/2]
| const Class classType |
( |
| ) |
const |
|
inline |
◆ classType() [2/2]
| void classType |
( |
Class | clas | ) |
|
|
inline |
Set the tag class
- Parameters
-
| clas | The clas to set for the tag |
◆ code() [1/2]
| const unsigned int code |
( |
| ) |
const |
|
inline |
◆ code() [2/2]
| void code |
( |
unsigned int | code | ) |
|
|
inline |
Set the tag code
- Parameters
-
| code | The code to set for the tag |
References code().
◆ coding()
Get the tag encoding
- Returns
- The DataBlock containing the encoding for the tag
◆ decode()
Decode an ASN.1 tag from the given data
- Parameters
-
| tag | Tag to fill |
| data | Data from which the tag should be filled |
References AsnTag().
◆ encode() [1/2]
◆ encode() [2/2]
Encode an ASN.1 tag and put the encoded form into the given data
- Parameters
-
| clas | Class of the tag |
| type | Type of the tag |
| code | Tag code |
| data | DataBlock into which to insert the encoded tag |
References code(), and type().
Referenced by AsnTag(), and operator=().
◆ operator!=()
| bool operator!= |
( |
const AsnTag & | tag | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
| bool operator== |
( |
const AsnTag & | tag | ) |
const |
|
inline |
◆ type() [1/2]
| const Type type |
( |
| ) |
const |
|
inline |
◆ type() [2/2]
Set the tag type
- Parameters
-
| type | The type to set for the tag |
References type().
The documentation for this class was generated from the following file: