./ct_report/coverage/mam_message_eterm.COVER.html

1 %%% @doc Encoding and decoding messages using internal erlang format
2 -module(mam_message_eterm).
3 -export([encode/1,
4 decode/1]).
5
6 -behaviour(mam_message).
7
8 encode(Packet) ->
9 27 term_to_binary(Packet).
10
11 decode(Bin) ->
12
:-(
binary_to_term(Bin).
Line Hits Source