View Source ExShark.Packet.Layer (exshark v0.1.0)

Represents a protocol layer with support for raw values.

Summary

Functions

Returns all available fields for the layer.

Gets a field value from the layer, handling both raw and normal modes.

Creates a new Layer struct with the given name and fields.

Updates the raw mode of the layer.

Functions

fields(layer)

Returns all available fields for the layer.

get_field(layer, field)

Gets a field value from the layer, handling both raw and normal modes.

new(name, fields, data \\ nil)

Creates a new Layer struct with the given name and fields.

update_mode(layer, mode)

Updates the raw mode of the layer.