Trait pcap_parser::traits::PcapNGPacketBlock [−][src]
pub trait PcapNGPacketBlock {
fn big_endian(&self) -> bool;
fn orig_len(&self) -> u32;
fn raw_packet_data(&self) -> &[u8];
fn packet_data(&self) -> &[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
fn raw_packet_data(&self) -> &[u8]
fn raw_packet_data(&self) -> &[u8]
Return the raw captured packet data, with padding if present, and eventually truncated.
fn packet_data(&self) -> &[u8]
fn packet_data(&self) -> &[u8]
Return the captured packet data without padding
If packet was truncated, the truncated data field is returned.