# asn1_ber

The packed encoding rule encoder/decoder

## File information

File | common/ilib/asn1_ber.h
Classes | asn1_context_ber
Examples | Encode Decode

# Classes

## asn1_context_ber

    class asn1_context_ber : public asn1_context {
         ...
    public:
        asn1_context_ber(struct asn1_tag * tag_buffer, int tag_buffer_size, void * content_buffer, int content_buffer_size, bool trace, unsigned fix_mask=0) :
            asn1_context(tag_buffer,tag_buffer_size,content_buffer,content_buffer_size,trace) { set_fix(fix_mask); };
        void * operator new(size_t s, void * a) { return a; };

        void read(class asn1 & asn1, class asn1_in & in);
        void write(class asn1 & asn1, class asn1_out & out);
    };

Encoder/decoder class

void read(class asn1 & asn1, class asn1_in & in)
  Read in the data to be decoded
  class asn1 & asn1
    The definition to be used
  class asn1_in & in
    Input class
void write(class asn1 & asn1, class asn1_out & out)
  Read in the data to be decoded
  class asn1 & asn1
    The definition to be used
  class asn1_out & out
    Output class