Codec.decode_field/3
Removes one framing newline and validates the complete field value.
Source and package
- Qualified name
-
LibTmux .Codec .decode _field/3 - Module
- LibTmux
- Declared in
- Codec
- Package
- libtmux
- Source
- lib/libtmux/codec.ex
- decode_field(response, type, options \\ []) @spec decode_field(binary(), :bytes | :string, [ field
_option () ]) :: {:ok, binary()} | {:error, LibTmux ()}decode_field(response, type, options \\ []) @spec decode_field(binary(), :integer, [field.Error .t _option ()]) :: {:ok, integer()} | {:error, LibTmux ()}decode_field(response, type, options \\ []) @spec decode_field(binary(), :boolean, [field.Error .t _option ()]) :: {:ok, boolean()} | {:error, LibTmux ()}.Error .t -
Description#
See the worked example.
Discussed in Command and field encoding