ITS
der_encoder.h File Reference
#include <asn_application.h>
Include dependency graph for der_encoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef asn_enc_rval_t() der_type_encoder_f(struct asn_TYPE_descriptor_s *type_descriptor, void *struct_ptr, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key)
 

Functions

asn_enc_rval_t der_encode (struct asn_TYPE_descriptor_s *type_descriptor, void *struct_ptr, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key)
 
asn_enc_rval_t der_encode_to_buffer (struct asn_TYPE_descriptor_s *type_descriptor, void *struct_ptr, void *buffer, size_t buffer_size)
 
ssize_t der_write_tags (struct asn_TYPE_descriptor_s *type_descriptor, size_t struct_length, int tag_mode, int last_tag_form, ber_tlv_tag_t tag, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key)
 

Typedef Documentation

◆ der_type_encoder_f

typedef asn_enc_rval_t() der_type_encoder_f(struct asn_TYPE_descriptor_s *type_descriptor, void *struct_ptr, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key)

Definition at line 37 of file der_encoder.h.

Function Documentation

◆ der_encode()

asn_enc_rval_t der_encode ( struct asn_TYPE_descriptor_s type_descriptor,
void *  struct_ptr,
asn_app_consume_bytes_f consume_bytes_cb,
void *  app_key 
)

Definition at line 15 of file der_encoder.c.

References ASN_DEBUG(), asn_TYPE_descriptor_s::der_encoder, and asn_TYPE_descriptor_s::name.

Here is the call graph for this function:

◆ der_encode_to_buffer()

asn_enc_rval_t der_encode_to_buffer ( struct asn_TYPE_descriptor_s type_descriptor,
void *  struct_ptr,
void *  buffer,
size_t  buffer_size 
)

Definition at line 54 of file der_encoder.c.

References enc_to_buf_arg::buffer, asn_TYPE_descriptor_s::der_encoder, encode_to_buffer_cb(), asn_enc_rval_s::encoded, and enc_to_buf_arg::left.

Here is the call graph for this function:

◆ der_write_tags()

ssize_t der_write_tags ( struct asn_TYPE_descriptor_s type_descriptor,
size_t  struct_length,
int  tag_mode,
int  last_tag_form,
ber_tlv_tag_t  tag,
asn_app_consume_bytes_f consume_bytes_cb,
void *  app_key 
)

Definition at line 77 of file der_encoder.c.

References ASN_DEBUG(), ber_tlv_tag_string(), der_write_TL(), asn_TYPE_descriptor_s::name, asn_TYPE_descriptor_s::tags, and asn_TYPE_descriptor_s::tags_count.

Referenced by BOOLEAN_encode_der(), CHOICE_encode_der(), der_encode_primitive(), OCTET_STRING_encode_der(), SEQUENCE_encode_der(), SEQUENCE_OF_encode_der(), and SET_OF_encode_der().

Here is the call graph for this function:
Here is the caller graph for this function: