12345678910111213141516171819202122232425262728293031323334353637(*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
* and Romain Calascibetta <romain.calascibetta@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)openDecompressmoduleDeflate=Zlib_deflatetypet=(Buffer.Bigstring.t,Buffer.Bigstring.t)Deflate.tanderror=Deflate.errorletpp_error:errorFmt.t=Deflate.pp_errorletdefaultlevel:t=Deflate.default~witness:Buffer.bigstringlevelletfinish:t->t=Deflate.finishletused_in:t->int=Deflate.used_inletused_out:t->int=Deflate.used_outletno_flush:int->int->t->t=Deflate.no_flushletflush:int->int->t->t=Deflate.flushleteval~src:src'~dst:dst't:[`Awaitoft|`Flushoft|`Erroroft*error|`Endoft]=letsrc=Cstruct.to_bigarraysrc'inletdst=Cstruct.to_bigarraydst'inDeflate.evalsrcdstt