package git

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Helper.MakeInflaterSource

MakeInflater makes a module which respects the interface S.DECODER from an angstrom decoder and an inflate implementation.

This module use internallya MakeDecoder, so we have the same assertions

  • it's an extension of the previous decoder with an inflator. Then, this decoder decodes both the inflated flow and the serialized flow with fixed-size buffers.

Parameters

module Z : sig ... end
module A : sig ... end

Signature

Sourcetype t = A.e
Sourcetype error = [
  1. | Error.Decoder.t
  2. | `Inflate of Z.error
]
Sourcetype decoder
Sourceval pp_error : error Fmt.t
Sourceval to_result : Cstruct.t -> (t, error) result
Sourceval default : init -> decoder
Sourceval eval : decoder -> [ `Await of decoder | `End of Cstruct.t * t | `Error of Cstruct.t * error ]
Sourceval finish : decoder -> decoder