Nock.Jam (Anoma v0.25.0)
Summary
Types
Link to this type
cache()
@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)
Link to this function
encode(jam_env, noun)
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()
Link to this function
jam(noun)
@spec jam(Noun.t()) :: Noun.noun_atom()
Link to this function
write(env, atom)
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()