ITS
per_support.c File Reference
#include <asn_system.h>
#include <asn_internal.h>
#include <per_support.h>
Include dependency graph for per_support.c:

Go to the source code of this file.

Functions

char * per_data_string (asn_per_data_t *pd)
 
void per_get_undo (asn_per_data_t *pd, int nbits)
 
int32_t per_get_few_bits (asn_per_data_t *pd, int nbits)
 
int per_get_many_bits (asn_per_data_t *pd, uint8_t *dst, int alright, int nbits)
 
ssize_t uper_get_length (asn_per_data_t *pd, int ebits, int *repeat)
 
ssize_t uper_get_nslength (asn_per_data_t *pd)
 
ssize_t uper_get_nsnnwn (asn_per_data_t *pd)
 
int uper_put_nsnnwn (asn_per_outp_t *po, int n)
 
int uper_get_constrained_whole_number (asn_per_data_t *pd, unsigned long *out_value, int nbits)
 
int uper_put_constrained_whole_number_s (asn_per_outp_t *po, long v, int nbits)
 
int uper_put_constrained_whole_number_u (asn_per_outp_t *po, unsigned long v, int nbits)
 
int per_put_few_bits (asn_per_outp_t *po, uint32_t bits, int obits)
 
int per_put_many_bits (asn_per_outp_t *po, const uint8_t *src, int nbits)
 
ssize_t uper_put_length (asn_per_outp_t *po, size_t length)
 
int uper_put_nslength (asn_per_outp_t *po, size_t length)
 

Function Documentation

◆ per_data_string()

char* per_data_string ( asn_per_data_t pd)

Definition at line 11 of file per_support.c.

References asn_per_data_s::buffer, asn_per_data_s::moved, asn_per_data_s::nbits, and asn_per_data_s::nboff.

Referenced by uper_open_type_get_complex(), and uper_ugot_refill().

Here is the caller graph for this function:

◆ per_get_few_bits()

int32_t per_get_few_bits ( asn_per_data_t pd,
int  nbits 
)

Definition at line 38 of file per_support.c.

References ASN_DEBUG(), asn_per_data_s::buffer, asn_per_data_s::moved, asn_per_data_s::nbits, asn_per_data_s::nboff, per_get_undo(), and asn_per_data_s::refill.

Referenced by BOOLEAN_decode_uper(), CHOICE_decode_uper(), OCTET_STRING_per_get_characters(), per_get_many_bits(), per_skip_bits(), SEQUENCE_decode_uper(), SET_OF_decode_uper(), uper_get_constrained_whole_number(), uper_get_length(), uper_get_nslength(), uper_get_nsnnwn(), uper_open_type_get_complex(), uper_open_type_get_simple(), uper_sot_suck(), and uper_ugot_refill().

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

◆ per_get_many_bits()

int per_get_many_bits ( asn_per_data_t pd,
uint8_t *  dst,
int  alright,
int  nbits 
)

Definition at line 123 of file per_support.c.

References per_get_few_bits().

Referenced by OCTET_STRING_per_get_characters(), SEQUENCE_decode_uper(), and uper_open_type_get_simple().

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

◆ per_get_undo()

void per_get_undo ( asn_per_data_t pd,
int  nbits 
)

Definition at line 25 of file per_support.c.

References asn_per_data_s::moved, and asn_per_data_s::nboff.

Referenced by per_get_few_bits().

Here is the caller graph for this function:

◆ per_put_few_bits()

int per_put_few_bits ( asn_per_outp_t po,
uint32_t  bits,
int  obits 
)

Definition at line 323 of file per_support.c.

References ASN_DEBUG(), asn_per_outp_s::buffer, asn_per_outp_s::flushed_bytes, asn_per_outp_s::nbits, asn_per_outp_s::nboff, asn_per_outp_s::op_key, asn_per_outp_s::outper, and asn_per_outp_s::tmpspace.

Referenced by BOOLEAN_encode_uper(), CHOICE_encode_uper(), INTEGER_encode_uper(), NativeEnumerated_encode_uper(), OCTET_STRING_encode_uper(), OCTET_STRING_per_put_characters(), per_put_many_bits(), SEQUENCE_encode_uper(), SEQUENCE_handle_extensions(), SEQUENCE_OF_encode_uper(), uper_put_constrained_whole_number_u(), uper_put_length(), uper_put_nslength(), and uper_put_nsnnwn().

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

◆ per_put_many_bits()

int per_put_many_bits ( asn_per_outp_t po,
const uint8_t *  src,
int  nbits 
)

Definition at line 413 of file per_support.c.

References per_put_few_bits().

Referenced by INTEGER_encode_uper(), OCTET_STRING_encode_uper(), OCTET_STRING_per_put_characters(), and uper_open_type_put().

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

◆ uper_get_constrained_whole_number()

int uper_get_constrained_whole_number ( asn_per_data_t pd,
unsigned long *  out_value,
int  nbits 
)

Definition at line 268 of file per_support.c.

References per_get_few_bits().

Here is the call graph for this function:

◆ uper_get_length()

ssize_t uper_get_length ( asn_per_data_t pd,
int  ebits,
int *  repeat 
)

Definition at line 167 of file per_support.c.

References per_get_few_bits().

Referenced by SET_OF_decode_uper(), uper_get_nslength(), uper_open_type_get_simple(), and uper_ugot_refill().

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

◆ uper_get_nslength()

ssize_t uper_get_nslength ( asn_per_data_t pd)

Definition at line 196 of file per_support.c.

References ASN_DEBUG(), per_get_few_bits(), and uper_get_length().

Referenced by SEQUENCE_decode_uper().

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

◆ uper_get_nsnnwn()

ssize_t uper_get_nsnnwn ( asn_per_data_t pd)

Definition at line 219 of file per_support.c.

References per_get_few_bits().

Referenced by CHOICE_decode_uper().

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

◆ uper_put_constrained_whole_number_s()

int uper_put_constrained_whole_number_s ( asn_per_outp_t po,
long  v,
int  nbits 
)

Definition at line 294 of file per_support.c.

References uper_put_constrained_whole_number_u().

Here is the call graph for this function:

◆ uper_put_constrained_whole_number_u()

int uper_put_constrained_whole_number_u ( asn_per_outp_t po,
unsigned long  v,
int  nbits 
)

Definition at line 308 of file per_support.c.

References per_put_few_bits().

Referenced by INTEGER_encode_uper(), and uper_put_constrained_whole_number_s().

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

◆ uper_put_length()

ssize_t uper_put_length ( asn_per_outp_t po,
size_t  length 
)

Definition at line 445 of file per_support.c.

References per_put_few_bits().

Referenced by INTEGER_encode_uper(), OCTET_STRING_encode_uper(), SEQUENCE_OF_encode_uper(), uper_open_type_put(), and uper_put_nslength().

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

◆ uper_put_nslength()

int uper_put_nslength ( asn_per_outp_t po,
size_t  length 
)

Definition at line 468 of file per_support.c.

References per_put_few_bits(), and uper_put_length().

Referenced by SEQUENCE_encode_uper().

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

◆ uper_put_nsnnwn()

int uper_put_nsnnwn ( asn_per_outp_t po,
int  n 
)

Definition at line 245 of file per_support.c.

References per_put_few_bits().

Referenced by CHOICE_encode_uper(), and NativeEnumerated_encode_uper().

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