1MP4(3)                      MP4 File Format Library                     MP4(3)
2
3
4

NAME

6       MP4BinaryToBase16 - Convert binary data to a base 16 string
7

SYNTAX

9       #include <mp4.h>
10
11       char* MP4BinaryToBase16(
12            const u_int8_t* pData,
13            u_int32_t dataSize
14       )
15

ARGUMENTS

17       pData  Specifies the pointer to the binary data.
18
19       dataSize
20              Specifies the size in bytes of the binary data.
21

RETURN VALUES

23       Upon  success,  a  null terminated string representing the data in base
24       16. Upon error, NULL.
25

DESCRIPTION

27       MP4BinaryToBase16 converts binary data to a base 16 string. This encod‐
28       ing  maps  groups of 4 bits into the character set [0-9a-f]. The string
29       is in malloc'd memory, so the caller is responsible  for  free'ing  the
30       memory.
31
32       This utility is useful for generating the SDP descriptions for some RTP
33       payloads.
34
35       Example:      0x12, 0xAB -> "12ab"
36

SEE ALSO

38       MP4(3)
39
40
41
42Cisco Systems Inc.                Version 0.9                           MP4(3)
Impressum