ExPcap.PacketData
This module represents the body of a packet.
Summary↑
from_file(f, global_header, packet_header) | Reads the packet body from the file |
read_forward(data, packet_header) | This function reads the body of a packet |
read_reversed(data, packet_header) | This function reads the body of a packet reversing the bytes along the way |
Types ↑
t :: %ExPcap.PacketData{data_len: non_neg_integer, data: binary}
Functions
Specs:
- from_file(IO.device, ExPcap.GlobalHeader.t, ExPcap.PacketHeader.t) :: ExPcap.PacketData.t
Reads the packet body from the file.
Specs:
- read_forward(binary, ExPcap.PacketHeader.t) :: ExPcap.PacketData.t
This function reads the body of a packet.
Specs:
- read_reversed(binary, ExPcap.PacketHeader.t) :: ExPcap.PacketData.t
This function reads the body of a packet reversing the bytes along the way.