Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-elixir

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.Error.t()}decode_field(response, type, options \\ []) @spec decode_field(binary(), :integer, [field_option()]) :: {:ok, integer()} | {:error, LibTmux.Error.t()}decode_field(response, type, options \\ []) @spec decode_field(binary(), :boolean, [field_option()]) :: {:ok, boolean()} | {:error, LibTmux.Error.t()}

Description

See the worked example.

Parameters
  • response (binary())

  • type (:bytes | :string) for decode_field/3(response, type, options) [overload 1]

  • options ([field_option()])

    Default []

  • type (:integer) for decode_field/3(response, type, options) [overload 2]

  • type (:boolean) for decode_field/3(response, type, options) [overload 3]

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Codec.decode_field/3.

Guides

task material

Pages that discuss decode_field/3.

Esc
Search in

Type to search.

Reference previewOpen reference