Trait pcap_parser::traits::PcapNGPacketBlock
source · [−]pub trait PcapNGPacketBlock {
fn big_endian(&self) -> bool;
fn orig_len(&self) -> u32;
fn raw_packet_data(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn packet_data(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];
fn truncated(&self) -> bool { ... }
}Expand description
Common methods for PcapNG Packet blocks
Required methods
fn big_endian(&self) -> bool
fn big_endian(&self) -> bool
Return true if block is encoded as big-endian
Return the raw captured packet data, with padding if present, and eventually truncated.