class

Filament::Capture::MmapPcapReader

Inherits Enumerable < Reference < Object

Zero-copy memory mapped PCAP reader

Constructors

new(path : String)
Source

Instance methods

close

Unmaps memory and closes underlying file

Source
each

Yields each packet, creating a Slice referencing mapped memory directly

Source
file_size
Source
finalize
Source
little_endian?
Source
nanosecond_timestamps?
Source
packet_count
Source
rewind

Resets cursor to read from beginning of packets

Source
snap_len
Source