ExPcap.PacketData (expcap v0.1.2) View Source
This module represents the body of a packet.
Link to this section Summary
Functions
Reads the packet body from the file.
This function reads the body of a packet.
This function reads the body of a packet reversing the bytes along the way.
Link to this section Types
Specs
t() :: %ExPcap.PacketData{data: binary(), data_len: non_neg_integer()}
Link to this section Functions
Specs
from_file(IO.device(), ExPcap.GlobalHeader.t(), ExPcap.PacketHeader.t()) :: t()
Reads the packet body from the file.
Specs
read_forward(binary(), ExPcap.PacketHeader.t()) :: t()
This function reads the body of a packet.
Specs
read_reversed(binary(), ExPcap.PacketHeader.t()) :: t()
This function reads the body of a packet reversing the bytes along the way.