View Source argo_wire_type_store (argo v1.0.4)
Summary
Types
-type t() :: #argo_wire_type_store{types :: argo_index_map:t(argo_types:name(), argo_wire_type_store_entry:t())}.
Functions
-spec display(IoDevice, WireTypeStore, Options) -> ok when IoDevice :: io:device(), WireTypeStore :: t(), Options :: argo_wire_type_printer:options().
-spec find(WireTypeStore, TypeName) -> {ok, WireType} | error when WireTypeStore :: t(), TypeName :: argo_types:name(), WireType :: argo_wire_type:t().
-spec find_entry(WireTypeStore, TypeName) -> {ok, WireTypeStoreEntry} | error when WireTypeStore :: t(), TypeName :: argo_types:name(), WireTypeStoreEntry :: argo_wire_type_store_entry:t().
-spec format(WireTypeStore, Options) -> Output when WireTypeStore :: t(), Options :: argo_wire_type_printer:options(), Output :: unicode:unicode_binary().
-spec from_json(JsonValue) -> WireTypeStore when JsonValue :: argo_json:json_value(), WireTypeStore :: t().
-spec insert(WireTypeStore, WireTypeStoreEntry) -> WireTypeStore when WireTypeStore :: t(), WireTypeStoreEntry :: argo_wire_type_store_entry:t().
-spec insert(WireTypeStore, TypeName, WireType) -> WireTypeStore when WireTypeStore :: t(), TypeName :: argo_types:name(), WireType :: argo_wire_type:t().
-spec new() -> WireTypeStore when WireTypeStore :: t().
-spec to_json(WireTypeStore) -> JsonValue when WireTypeStore :: t(), JsonValue :: argo_json:json_value().
-spec to_writer(WireTypeStore, Header) -> Writer when WireTypeStore :: t(), Header :: argo_header:t(), Writer :: binary().