Function parse_uint16
odtone::dns::parse_uint16
Synopsis
uint16 parse_uint16(const unsigned char * p, int & pos);
Description
Parse an unsigned int16. In the end the position is pointing to the next byte after the unsigned int16 end.
Parameters: |
p
|
Byte array containing the information. |
pos
|
Position in the byte array where to start parsing. |
|
Returns: |
The unsigned int16 value. |