Library
Module
Module type
Parameter
Class
Class type
type 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
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
.
val pp_error : Format.formatter -> error -> unit
val pp_gzip_error : Format.formatter -> [ `Gzip of error ] -> unit
module Z : sig ... end