Pure Fortran implementation of zlib compression, decompression, and CRC32 Ported from STB image libraries for self-contained PNG support
Calculate CRC32 checksum using standard polynomial
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int8), | intent(in) | :: | data(*) | |||
| integer, | intent(in) | :: | data_len | 
Backwards-compatible wrapper returning an allocatable result
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int8), | intent(in) | :: | input_data(*) | |||
| integer, | intent(in) | :: | input_len | |||
| integer, | intent(out) | :: | output_len | 
Decompress zlib (deflate) data using fixed Huffman tables
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int8), | intent(in) | :: | input_data(*) | |||
| integer, | intent(in) | :: | input_len | |||
| integer, | intent(out), | optional | :: | status | ||
| logical, | intent(in), | optional | :: | verify_checksum | 
Initialize debug logging based on FORTPLOT_ZLIB_DEBUG environment variable
Compress data into a newly allocated buffer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int8), | intent(in) | :: | input_data(*) | |||
| integer, | intent(in) | :: | input_len | |||
| integer(kind=int8), | intent(out), | allocatable | :: | output_data(:) | ||
| integer, | intent(out) | :: | output_len |