View Source vdist_atom_translation_table (erldist_filter v1.28.5)

Summary

Types

-type index() :: 0..255.
-type t() ::
    #vdist_atom_translation_table{entries ::
                                      #{vdist_atom_translation_table:index() =>
                                            {vdist_atom_cache:index(), atom()}}}.

Functions

-spec find(Table, Index) -> {ok, Atom} | {error, Reason}
        when Table :: t(), Index :: index(), Atom :: atom(), Reason :: not_found.
-spec new() -> Table when Table :: t().
-spec rfind(Table, Atom) -> {ok, Index} | {error, Reason}
         when Table :: t(), Index :: index(), Atom :: atom(), Reason :: not_found.
Link to this function

store(Table, CacheIndex, Atom)

View Source
-spec store(Table, CacheIndex, Atom) -> {ok, Table} | {error, Reason}
         when
             Table :: t(),
             CacheIndex :: vdist_atom_cache:index(),
             Atom :: atom(),
             Reason :: max_internal_atom_cache_entries.