Pcapex.Packet (pcapex v0.0.6)

Link to this section Summary

Link to this section Types

Specs

params() :: [
  data: binary(),
  timestamp_usec: pos_integer(),
  timestamp_sec: float(),
  original_size: pos_integer()
]

Specs

t() :: %Pcapex.Packet{
  data: binary(),
  original_size: pos_integer(),
  timestamp_usec: pos_integer()
}

Link to this section Functions

Link to this function

datetime(packet)

Specs

datetime(t()) :: DateTime.t()
Link to this function

from_hex(hex_data, params)

Specs

from_hex(String.t(), params()) :: t()

Specs

new(params()) :: t()
Link to this function

new(data, timestamp_usec, original_size \\ nil)

Specs

new(binary(), pos_integer(), pos_integer() | nil) :: t()
Link to this function

timestamp_sec(packet)

Specs

timestamp_sec(t()) :: float()

Specs

to_hex(t()) :: String.t()