# asn1_per

The packed encoding rule encoder/decoder

## File information

File | common/ilib/asn1_per.h
Classes | asn1_context_per
Examples | Encode Decode

# Classes

## asn1_context_per

    class asn1_context_per : public asn1_context {
         ...
    public:
        asn1_context_per(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