module Buffer = Decompress_buffermodule Safe = Decompress_safetype ('a, 'crc) t = {rpos : int; |
wpos : int; |
size : int; |
buffer : ([ Safe.ro | Safe.wo ], 'a) Safe.t; |
crc : Optint.t; |
crc_witness : 'crc checksum; |
buffer_witness : 'a Buffer.t; |
}module Crc : sig ... endval create : crc:'a Crc.t -> witness:'b Safe.Buffer.t -> ('b, 'a) tval available_to_write : ('a, 'b) t -> intval write : ([< `Rd | `Wr Rd ], 'a) Safe.t -> int -> ([< `Rd | `Wr Wr ], 'a) Safe.t -> int -> int -> ('a, 'b) t -> ('a, 'b) tval sanitize : int -> ('a, 'b) t -> intval (%) : int -> ('a, 'b) t -> int