./ct_report/coverage/mam_message_xml.COVER.html

1 %%% @doc Encoding and decoding messages using exml library
2 -module(mam_message_xml).
3 -export([encode/1,
4 decode/1]).
5
6 -behaviour(mam_message).
7
8 encode(Packet) ->
9 1415 exml:to_binary(Packet).
10
11 decode(Bin) ->
12 744 {ok, Packet} = exml:parse(Bin),
13 723 Packet.
Line Hits Source