./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 1394 exml:to_binary(Packet).
10
11 decode(Bin) ->
12 730 {ok, Packet} = exml:parse(Bin),
13 709 Packet.
Line Hits Source