View Source ezstd (ezstd v1.0.5)

Zstd [1] binding for Erlang.

[1]: http://facebook.github.io/zstd

Link to this section Summary

Link to this section Functions

-spec compress(binary()) -> binary() | {error, any()}.
Compresses the given binary.
Link to this function

compress(Binary, CompressionLevel)

View Source
-spec compress(binary(), integer()) -> binary() | {error, any()}.
Compresses the given binary with compression level.
Link to this function

compress_using_cdict(Binary, CCDict)

View Source
-spec compress_using_cdict(binary(), reference()) -> binary() | {error, any()}.
Link to this function

create_cdict(Binary, CompressionLevel)

View Source
-spec create_cdict(binary(), integer()) -> reference() | {error, any()}.
-spec create_ddict(binary()) -> reference() | {error, any()}.
-spec decompress(binary()) -> binary() | {error, any()}.
Decompresses the given binary.
Link to this function

decompress_using_ddict(Binary, DDict)

View Source
-spec decompress_using_ddict(binary(), reference()) -> binary() | {error, any()}.
Link to this function

get_dict_id_from_cdict(CDict)

View Source
-spec get_dict_id_from_cdict(reference()) -> integer().
Link to this function

get_dict_id_from_ddict(DDict)

View Source
-spec get_dict_id_from_ddict(reference()) -> integer().
Link to this function

get_dict_id_from_frame(Binary)

View Source
-spec get_dict_id_from_frame(binary()) -> integer().