IODecoder.MakeFunctor that builds a decoder for the given IO monad.
This module provides a random-access decoder that can be used to efficiently decode pieces of content at given positions.
type 'a io = 'a IO.tType for IO
val init : block_get:(string -> string io) -> Read_capability.t -> tinit ~block_get read_capability returns a new decoder.
Initializing a decoder will not cause any block de-references (the block_get function will not be called).
val pos : t -> intpos decoder returns the position of the decoder as offset from the start of the encoded content.