![]() |
Home | Libraries | People | FAQ | More |
boost::asn1::asn_decode — ASN1 decoder visitor.
template<typename TagLenT> class asn_decode : public boost::asn1::asn_visitor_t { public: // construct/copy/destruct asn_decode(iostream &); // public member functions uint32_t execute(asn_base_ptr &) ; uint32_t visit(asn_base_ptr &) ; };
The ASN1 decoder visitor template requires a tag_len_policy derived object to be able to execute the decoding process.
Usageasn_base_ptr asn_object; iostream istrm; ... asn_decode<ber_taglen> decoder(istrm); decoder.execute(asn_object);
ber_taglen, cer_taglen, der_taglen
asn_decode public member functionsuint32_t execute(asn_base_ptr & asn_object) ;
Reads the tag, creates a new ASN1 object then accepts the visitor to read the length and data portions of the ASN1 object.
| Parameters: |
|
||
| Returns: | Number of bytes read |
uint32_t visit(asn_base_ptr & asn_object) ;
Reads the length and then decodes the data portions of the ASN1 object.
| Parameters: |
|
||
| Returns: | Number of bytes read |
| Copyright © 2007 Andreas Haberstroh |