./ct_report/coverage/mam_message_compressed_eterm.COVER.html

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