package core_unix

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

Module Iobuf_unix.In_channel_optimizedSource

As similar APIs in In_channel, but using an intermediate Iobuf; considerably faster.

Sourcetype 'a channel_op_with_opts := ?fix_win_eol:bool -> ?buf:(Core.read_write, Iobuf.seek) Iobuf.t -> Core.In_channel.t -> 'a
Sourceval fold_lines : (init:'a -> f:('a -> string -> 'a) -> 'a) channel_op_with_opts
Sourceval iter_lines : (f:(string -> unit) -> unit) channel_op_with_opts
Sourceval input_lines : string array channel_op_with_opts
Sourceval fold_lines_raw : (init:'a -> f:('a -> (Core.read_write, Iobuf.seek) Iobuf.t -> 'a) -> 'a) channel_op_with_opts

More efficient than fold_lines because no string allocation/copying.