exgencode v1.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 give the protocol version

Returns the size of the field in bits

Link to this section Types

Link to this section Functions

Link to this function decode(pdu, binary, version)
decode(Exgencode.pdu(), binary(), nil | Version.version()) ::
  {Exgencode.pdu(), binary()}

Decode a binary into the specified Elixir structure.

Link to this function encode(pdu, version)
encode(Exgencode.pdu(), nil | Version.version()) :: binary()

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

Link to this function sizeof(pdu, field_name)

Returns the size of the field in bits.