Skip to content

Module dev_codec_flat.erl

A codec for turning TABMs into/from flat Erlang maps that have (potentially multi-layer) paths as their keys, and a normal TABM binary as their value.

Function Index

binary_passthrough_test/0*
commit/3
deep_nesting_test/0*
deserialize/1
empty_map_test/0*
from/3Convert a flat map to a TABM.
inject_at_path/3*
inject_at_path/4*
multiple_paths_test/0*
nested_conversion_test/0*
path_list_test/0*
serialize/1
serialize/2
simple_conversion_test/0*
to/3Convert a TABM to a flat map.
verify/3

Function Details

binary_passthrough_test/0 *

binary_passthrough_test() -> any()

commit/3

commit(Msg, Req, Opts) -> any()

deep_nesting_test/0 *

deep_nesting_test() -> any()

deserialize/1

deserialize(Bin) -> any()

empty_map_test/0 *

empty_map_test() -> any()

from/3

from(Bin, Req, Opts) -> any()

Convert a flat map to a TABM.

inject_at_path/3 *

inject_at_path(Rest, Value, Map) -> any()

inject_at_path/4 *

inject_at_path(Rest, Value, Map, Opts) -> any()

multiple_paths_test/0 *

multiple_paths_test() -> any()

nested_conversion_test/0 *

nested_conversion_test() -> any()

path_list_test/0 *

path_list_test() -> any()

serialize/1

serialize(Map) -> any()

serialize/2

serialize(Map, Opts) -> any()

simple_conversion_test/0 *

simple_conversion_test() -> any()

to/3

to(Bin, Req, Opts) -> any()

Convert a TABM to a flat map.

verify/3

verify(Msg, Req, Opts) -> any()