object
  method close_in : unit -> unit
  method input : Bytes.t -> int -> int -> int
  method pos_in : int
end