PcapPlusPlus icon indicating copy to clipboard operation
PcapPlusPlus copied to clipboard

Replaced raw arrays with std::array in IPv4 and IPv6 address classes.

Open Dimi1010 opened this issue 1 year ago • 0 comments

Overview of changes:

  • Replaced raw array usages with std::array in internal implementation of IPv4Address and IPv6Address.

Overview of new additions:

  • Added new constructors to IPv4Address and IPv6Address that take std::array<uint8_t, 4> and std::array<uint8_t, 16> respectively.
  • Added new getter method toByteArray() to to IPv4Address and IPv6Address that return std::array<uint8_t, 4> and std::array<uint8_t, 16> respectively.

Dimi1010 avatar May 05 '24 13:05 Dimi1010