Term protocol encoding for SafeRPC.
Summary
Functions
The default maximum encoded frame size in bytes.
Rejects an encoded frame larger than the configured limit.
Types
@type request_id() :: non_neg_integer()
Functions
@spec decode_reply(binary(), request_id()) :: {:ok, term()} | {:error, term()}
@spec default_max_frame_size() :: pos_integer()
The default maximum encoded frame size in bytes.
@spec encode_cancel(request_id()) :: binary()
@spec encode_reply(request_id(), term()) :: binary()
@spec validate_frame_size(binary(), pos_integer()) :: :ok | {:error, term()}
Rejects an encoded frame larger than the configured limit.