PcapPlusPlus
PcapPlusPlus copied to clipboard
Replaced raw arrays with std::array in IPv4 and IPv6 address classes.
Overview of changes:
- Replaced raw array usages with
std::arrayin internal implementation ofIPv4AddressandIPv6Address.
Overview of new additions:
- Added new constructors to
IPv4AddressandIPv6Addressthat takestd::array<uint8_t, 4>andstd::array<uint8_t, 16>respectively. - Added new getter method
toByteArray()to toIPv4AddressandIPv6Addressthat returnstd::array<uint8_t, 4>andstd::array<uint8_t, 16>respectively.