cid.h File Reference

Context ID (CID) routines. More...

#include "rohc.h"
#include <stdlib.h>
Include dependency graph for cid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int code_cid_values (const rohc_cid_type_t cid_type, const rohc_cid_t cid, uint8_t *const dest, const size_t dest_size, size_t *const first_position)
 Build the CID part of the ROHC packets.

Detailed Description

Context ID (CID) routines.

Author:
Didier Barvaux <didier.barvaux@toulouse.viveris.com>

Function Documentation

int code_cid_values ( const rohc_cid_type_t  cid_type,
const rohc_cid_t  cid,
uint8_t *const   dest,
const size_t  dest_size,
size_t *const   first_position 
)

Build the CID part of the ROHC packets.

Parameters:
cid_type The type of CID in use for the compression context: ROHC_SMALL_CID or ROHC_LARGE_CID
cid The value of the CID for 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
Returns:
The position in the rohc-packet-under-build buffer in case of success, -1 in case of error

Generated on 4 Jul 2018 for ROHC compression/decompression library by  doxygen 1.6.1