'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Function parse_data

odtone::dns::parse_data

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/net/dns/utils.hpp>


std::vector< uint8 > parse_data(const unsigned char * p, int & pos, int len);

Description

Parse a byte array. In the end the position is pointing to the next byte after the byte array end.

Parameters:

len

Length of the byte array.

p

Byte array containing the information.

pos

Position in the byte array where to start parsing.

Returns:

The byte array value.


PrevUpHomeNext