Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class ber_taglen

boost::asn1::ber_taglen — BER tag & length codec.

Synopsis

class ber_taglen : public boost::asn1::tag_len_policy {
public:
  // construct/copy/destruct
  ber_taglen();

  // public member functions
  uint32_t tagRead(istream &, asn_base_ptr &) ;
  uint32_t tagWrite(ostream &, asn_base_ptr &) ;
  uint32_t lenRead(istream &, asn_base_ptr &) ;
  uint32_t lenWrite(ostream &, asn_base_ptr &) ;
};

Description

Basic Encoding Rules tag/length codec.

asn_encode, asn_decode

ber_taglen construct/copy/destruct

  1. ber_taglen();

ber_taglen public member functions

  1. uint32_t tagRead(istream & strm, asn_base_ptr & asn_object) ;

    Parameters:
    asn_object

    The ASN1 object created after reading the tag

    strm

    istream to read the data from

    Returns:

    Number of bytes read

  2. uint32_t tagWrite(ostream & strm, asn_base_ptr & asn_object) ;

    Parameters:
    asn_object

    The ASN1 object we are currently writing

    strm

    ostream to write the data to

    Returns:

    Number of bytes written

  3. uint32_t lenRead(istream & strm, asn_base_ptr & asn_object) ;

    Parameters:
    asn_object

    The ASN1 object that has the length set

    strm

    istream to read the data from

    Returns:

    Number of bytes read

  4. uint32_t lenWrite(ostream & strm, asn_base_ptr & asn_object) ;

    Parameters:
    asn_object

    The ASN1 object we are currently writing

    strm

    ostream to write the data to

    Returns:

    Number of bytes written

Copyright © 2007 Andreas Haberstroh

PrevUpHomeNext