Op.ReadFile reads.
val make_op :
id:id ->
mark:mark ->
created:B0_std.Mtime.Span.t ->
?post_exec:(op -> unit) ->
?k:(op -> unit) ->
B0_std.Fpath.t ->
opmake_op declares a file read operation, see the corresponding accessors for the semantics of the various arguments.
val make : file:B0_std.Fpath.t -> data:string -> tmake constructs a bare read operation.
val file : t -> B0_std.Fpath.tfile r is the file read by r.
val data : t -> stringdata r is the read data.
val set_data : t -> string -> unitset_data r d sets the read data to d.
val discard_data : t -> unitdiscard_data () discards read data.