Liberator.Encoding behaviour (liberator v3.0.0)

View Source

A behaviour module for compression codecs.

Liberator uses this behaviour to help make sure at compile-time that codecs will be called successfully. Include it in your own module for the same peace of mind.

Summary

Callbacks

Encode a binary into an encoded form, and raises if there's an error.

Callbacks

encode!(binary)

@callback encode!(binary()) :: binary()

Encode a binary into an encoded form, and raises if there's an error.