libcss
Loading...
Searching...
No Matches
Functions
detect.h File Reference
#include <inttypes.h>
#include <libcss/errors.h>
#include <libcss/functypes.h>
#include <libcss/types.h>
#include <parserutils/errors.h>

Go to the source code of this file.

Functions

parserutils_error css__charset_extract (const uint8_t *data, size_t len, uint16_t *mibenum, uint32_t *source)
 

Function Documentation

◆ css__charset_extract()

parserutils_error css__charset_extract ( const uint8_t *  data,
size_t  len,
uint16_t *  mibenum,
uint32_t *  source 
)

Extract a charset from a chunk of data

Parameters
dataPointer to buffer containing data
lenBuffer length
mibenumPointer to location containing current MIB enum
sourcePointer to location containing current charset source
Returns
PARSERUTILS_OK on success, appropriate error otherwise

::mibenum and ::source will be updated on exit

CSS 2.1 $4.4