ROHC compression/decompression library
Functions
rohc_add_cid.h File Reference

Functions related to ROHC add-CID. More...

#include "dllexport.h"
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for rohc_add_cid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool ROHC_EXPORT rohc_add_cid_is_present (const uint8_t *const data)
 Check whether a ROHC packet starts with an add-CID byte or not.
uint8_t ROHC_EXPORT rohc_add_cid_decode (const uint8_t *const data)
 Decode the add-CID byte of a ROHC packet (if the add-CID byte is present)

Detailed Description

Functions related to ROHC add-CID.

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

Function Documentation

uint8_t ROHC_EXPORT rohc_add_cid_decode ( const uint8_t *const  data)

Decode the add-CID byte of a ROHC packet (if the add-CID byte is present)

Parameters:
dataThe ROHC packet with a possible add-CID byte
Returns:
0 if no add-CID byte is present, the CID value otherwise
bool ROHC_EXPORT rohc_add_cid_is_present ( const uint8_t *const  data)

Check whether a ROHC packet starts with an add-CID byte or not.

Parameters:
dataThe ROHC packet with a possible add-CID byte
Returns:
Whether the ROHC packet starts with an add-CID byte or not