package core_unix
Module Iobuf_unix.In_channel_optimizedSource
As similar APIs in In_channel, but using an intermediate Iobuf; considerably faster.
Source
type 'a channel_op_with_opts :=
?fix_win_eol:bool ->
?buf:(Core.read_write, Iobuf.seek) Iobuf.t ->
Core.In_channel.t ->
'aSource
val fold_lines_raw :
(init:'a ->
f:('a -> (Core.read_write, Iobuf.seek) Iobuf.t -> 'a) ->
'a)
channel_op_with_optsMore efficient than fold_lines because no string allocation/copying.