Compresses input string using the zlib utility function.
The function returns the following error codes:
E_ALLOC
if the allocation of the output string failed.E_EMPTY
if the compressed size is 0.E_ZLIB
if the compression failed.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(inout) | :: | input |
Input bytes. |
||
character(len=:), | intent(out), | allocatable | :: | 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. |