exgencode v2.2.0 Exgencode.Pdu.Protocol protocol

Link to this section Summary

Functions

Decode a binary into the specified Elixir structure.

Encode the Elixir structure into a binary given the protocol version.

Calculate the values of all offset fields.

Returns the size of the field in bits.

Returns the size of the pdu for given version.

Link to this section Types

Link to this section Functions

Link to this function

decode(pdu, binary, version)

Decode a binary into the specified Elixir structure.

Link to this function

encode(pdu, version)

Encode the Elixir structure into a binary given the protocol version.

Link to this function

set_offsets(pdu, version)

Calculate the values of all offset fields.

Link to this function

sizeof(pdu, field_name)

Returns the size of the field in bits.

Link to this function

sizeof_pdu(pdu, version, type)

Returns the size of the pdu for given version.