Page
Library
Module
Module type
Parameter
Class
Class type
Source
EzgzipSourcetype error = | Truncated of stringExtracted size is greater than the allowed maximum size
*)| Invalid_formatInvalid data format
*)| Compression_error of stringzlib error
*)| Size of {}Extracted size does not match what was expected based on the source metadata
*)| ChecksumExtracted content checksum does not match what was expected based on the source metadata
*)Possible error cases
compress src returns a gzip-compressed version of src.
val decompress :
?ignore_size:bool ->
?ignore_checksum:bool ->
?max_size:int ->
string ->
(string, [> `Gzip of error ]) resultdecompress src decompresses the content from the gzip-compressed src.