Struct version_t

Struct Documentation

struct libnokogiri::version_t

pcap version information

This structure is just a glorified container for holding version information.

Both pcapng and the standard pcap formats both use this.

Public Functions

constexpr version_t() noexcept
constexpr version_t(std::uint16_t vmajor, std::uint16_t vminor) noexcept
version_t(std::nullptr_t) noexcept
std::uint32_t major_version() const noexcept

Gets the major version of the section header

std::uint32_t minor_version() const noexcept

Gets the minor version of the section header

bool operator==(const version_t &ver) const noexcept

Check if two versions are equal

bool operator!=(const version_t &ver) const noexcept

Check if two versions are not equal

bool operator>(const version_t &ver) const noexcept

Check if one version is greater than another

bool operator>=(const version_t &ver) const noexcept

Check if one version is greater than or equal to another

bool operator<(const version_t &ver) const noexcept

Check if one version is less than another

bool operator<=(const version_t &ver) const noexcept

Check if one version is less than or equal to another