Struct packet_storage_t

Struct Documentation

struct libnokogiri::pcap::packet_storage_t

Storage container for pcap packet data.

This structure stores a small amount of information pertaining to a packet within the pcap file.

It holds the packet type, the size of the packet (including the header), the offset into the pcap file, and the cached packet itself if it’s been read.

Public Functions

packet_storage_t() noexcept
packet_storage_t(std::uint32_t len, std::uintptr_t offset) noexcept
packet_storage_t(std::uint32_t len, std::uintptr_t offset, packet_t &&packet) noexcept
packet_storage_t(const packet_storage_t&) = delete
packet_storage_t &operator=(const packet_storage_t&) = delete
packet_storage_t(packet_storage_t&&) = default
packet_storage_t &operator=(packet_storage_t&&) = default
std::uint32_t length() const noexcept
std::uintptr_t offset() const noexcept
packet_t &get_packet() noexcept

Gets the packet that is represented by this storage object

void set_packet(packet_t &&pkt) noexcept