PcapPlusPlus
20.08
<= Back to web-site
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
Enumerations
Enumerator
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
w
Files
File List
File Members
All
i
p
Functions
Macros
p
GitHub
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
GeneralUtils.h
Go to the documentation of this file.
1
#ifndef PCAPPP_GENERAL_UTILS
2
#define PCAPPP_GENERAL_UTILS
3
4
#include <string>
5
#include <stdint.h>
6
8
13
namespace
pcpp
14
{
26
std::string
byteArrayToHexString
(
const
uint8_t* byteArr,
size_t
byteArrSize,
int
stringSizeLimit = -1);
27
41
size_t
hexStringToByteArray
(
const
std::string& hexString, uint8_t* resultByteArr,
size_t
resultByteArrSize);
42
}
43
44
#endif // PCAPPP_GENERAL_UTILS
pcpp
The main namespace for the PcapPlusPlus lib.
pcpp::byteArrayToHexString
std::string byteArrayToHexString(const uint8_t *byteArr, size_t byteArrSize, int stringSizeLimit=-1)
pcpp::hexStringToByteArray
size_t hexStringToByteArray(const std::string &hexString, uint8_t *resultByteArr, size_t resultByteArrSize)
PcapPlusPlus
Dist
header
GeneralUtils.h
Generated on Sat Aug 22 2020 15:52:45 for PcapPlusPlus by
1.8.17