Page
Library
Module
Module type
Parameter
Class
Class type
Source
Ezgzip
Sourcetype error =
| Truncated of string
Extracted size is greater than the allowed maximum size
*)| Invalid_format
Invalid data format
*)| Compression_error of string
zlib error
*)| Size of {
}
Extracted size does not match what was expected based on the source metadata
*)| Checksum
Extracted 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 ]) result
decompress src
decompresses the content from the gzip-compressed src
.