dm_zstd_uncompress Interface

public interface dm_zstd_uncompress

Generic Zstandard decompression function.


Module Procedures

private function zstd_uncompress_multi(context, input, output, input_len, output_len) result(rc)

Uncompresses input string using the zstd simple context function. The output buffer must be large enough to hold the uncompressed result. The function returns E_ZSTD if the decompression failed. The Zstandard context type context has to be destroyed with dm_zstd_destroy() once finished.

Arguments

Type IntentOptional Attributes Name
type(zstd_context_type), intent(inout) :: context

Zstandard context type.

character(len=*), intent(inout) :: input

Input bytes.

character(len=*), intent(inout) :: output

Output bytes.

integer(kind=i8), intent(in), optional :: input_len

Actual input length.

integer(kind=i8), intent(out), optional :: output_len

Actual output length.

Return Value integer

private function zstd_uncompress_single(input, output, input_len, output_len) result(rc)

Uncompresses input string using the zstd simple function. The output buffer must be large enough to hold the uncompressed result. The function returns E_ZSTD if the decompression failed.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(inout) :: input

Input bytes.

character(len=*), intent(inout) :: output

Output bytes.

integer(kind=i8), intent(in), optional :: input_len

Actual input length.

integer(kind=i8), intent(out), optional :: output_len

Actual output length.

Return Value integer