megaco_edist_compress behaviour (megaco v4.8.3)

Copy Markdown View Source

Megaco erlang dist compress behaviour.

The following functions should be exported from a megaco_edist_compress callback module:

Summary

Callbacks

Decompress a megaco component.

Compress a megaco component. The erlang dist encoder makes no assumption on the how or even if the component is compressed.

Callbacks

decode(T :: term(), Version :: megaco_encoder:protocol_version() | dynamic) -> R

Decompress a megaco component.

encode(R, Version) -> T

Compress a megaco component. The erlang dist encoder makes no assumption on the how or even if the component is compressed.