Nock.Jam (Anoma v0.25.0)

Summary

Types

@type cache() :: %{required(Noun.t()) => non_neg_integer()}
@type t() :: %Nock.Jam{buffer: [0 | 1], cache: cache(), position: non_neg_integer()}

Functions

Link to this function

cache_noun(env, noun)

@spec cache_noun(t(), Noun.t()) :: t()
Link to this function

encode(jam_env, noun)

@spec encode(t(), Noun.t()) :: t()
Link to this function

fetch_cache_noun(env, noun)

@spec fetch_cache_noun(t(), Noun.t()) :: {:ok, non_neg_integer()} | :error
Link to this function

handle_back(env, position, noun)

@spec handle_back(t(), non_neg_integer(), Noun.t()) :: t()
@spec jam(Noun.t()) :: Noun.noun_atom()
Link to this function

write(env, atom)

@spec write(t(), Noun.t()) :: t()
Link to this function

write_atom(env, atom)

@spec write_atom(t(), Noun.noun_atom()) :: t()
@spec write_atom(t(), non_neg_integer()) :: t()
Link to this function

write_back_ref(env, position)

Link to this function

write_length(env, len_atom)

@spec write_length(t(), non_neg_integer()) :: t()