ROHC compression/decompression library
|
Context ID (CID) routines. More...
Functions | |
unsigned char | c_add_cid (int cid) |
Set an add-CID value. | |
int | code_cid_values (struct c_context *context, unsigned char *dest, int dest_size, int *first_position) |
Build the CID part of the ROHC packets. |
Context ID (CID) routines.
unsigned char c_add_cid | ( | int | cid | ) |
Set an add-CID value.
Add-CID is needed when using small CIDs.
cid | The small CID to set |
Referenced by code_cid_values().
int code_cid_values | ( | struct c_context * | context, |
unsigned char * | dest, | ||
int | dest_size, | ||
int * | first_position | ||
) |
Build the CID part of the ROHC packets.
context | The compression context |
dest | The rohc-packet-under-build buffer |
dest_size | The length of the rohc-packet-under-build buffer |
first_position | OUT: The position of the first byte to be completed by other functions |
References c_add_cid(), c_bytesSdvl(), c_encodeSdvl(), c_context::cid, medium::cid_type, c_context::compressor, rohc_comp::medium, rohc_debugf, and rohc_debugf_.
Referenced by code_IR_DYN_packet(), code_IR_packet(), code_UO0_packet(), code_UO1_packet(), code_UO2_packet(), uncompressed_code_IR_packet(), and uncompressed_code_normal_packet().