Module org.jnetpcap

Record Class PcapPacketRef

java.lang.Object
java.lang.Record
org.jnetpcap.util.PcapPacketRef
Record Components:
abi - platform specific ABI (Abstract Binary Interface)
header - raw pcap header in a memory segment
data - raw packet data in a memory segment

public record PcapPacketRef(Object abi, MemorySegment header, MemorySegment data) extends Record
A utility class which holds references to native pcap header and native pcap packet data. The scope of these addresses is libpcap packet scope and should be used with great care or VM crashes can occur.
Author:
Sly Technologies Inc, repos@slytechs.com