Exgencode.Pdu.Protocol.encode

You're seeing just the function encode, go back to Exgencode.Pdu.Protocol module for more information.
Link to this function

encode(pdu, version)

Specs

encode(Exgencode.pdu(), nil | Version.version()) :: binary()

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