grizzly v0.8.4 Grizzly.SmartStart.MetaExtension behaviour View Source

Link to this section Summary

Functions

Take an Extension.t() and turn it into a binary

Given a binary string with meta extensions, can be in any order, decode it and return a list of MetaExtension.t()

Take a list of Extension.t()s and turn them into a binary string

Link to this section Types

Link to this section Functions

Link to this function

extension_to_binary(extension) View Source
extension_to_binary(t()) :: binary()

Take an Extension.t() and turn it into a binary

Link to this function

extensions_from_binary(binary) View Source
extensions_from_binary(binary()) ::
  {:ok, [t()]}
  | {:error, :invalid_meta_extensions_binary}
  | {:error, module(), reason :: any()}

Given a binary string with meta extensions, can be in any order, decode it and return a list of MetaExtension.t()

Link to this function

extensions_to_binary(extension_list) View Source
extensions_to_binary([t()]) :: binary()

Take a list of Extension.t()s and turn them into a binary string

Link to this section Callbacks

Link to this callback

from_binary(binary) View Source
from_binary(binary()) :: {:ok, t()} | {:error, reason :: any()}

Link to this callback

to_binary(t) View Source
to_binary(t()) :: {:ok, binary()}