View Source ezstd (ezstd v1.0.8)
Zstd [1] binding for Erlang.
[1]: http://facebook.github.io/zstdLink to this section Summary
Functions
Compresses the given binary.
Compresses the given binary with compression level.
Decompresses the given binary.
Link to this section Functions
-spec compress(binary()) -> binary() | {error, any()}.
-spec compress(binary(), integer()) -> binary() | {error, any()}.
-spec compress_using_cdict(binary(), reference()) -> binary() | {error, any()}.
-spec create_cdict(binary(), integer()) -> reference() | {error, any()}.
-spec create_ddict(binary()) -> reference() | {error, any()}.
-spec decompress(binary()) -> binary() | {error, any()}.
-spec decompress_using_ddict(binary(), reference()) -> binary() | {error, any()}.
-spec get_dict_id_from_cdict(reference()) -> integer().
-spec get_dict_id_from_ddict(reference()) -> integer().
-spec get_dict_id_from_frame(binary()) -> integer().