package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.memo/B0_zero/Op/Write/index.html

Module Op.WriteSource

File writes.

File writes

Sourcetype t

The type for file write operations.

Sourceval make_op : id:id -> mark:mark -> created:B0_std.Mtime.Span.t -> ?post_exec:(op -> unit) -> ?k:(op -> unit) -> stamp:string -> reads:B0_std.Fpath.t list -> mode:int -> write:B0_std.Fpath.t -> (unit -> (string, string) result) -> op

write declares a file write operations, see the corresponding accessors for the semantics of the various arguments.

Sourceval make : stamp:string -> mode:int -> file:B0_std.Fpath.t -> data:(unit -> (string, string) result) -> t

make constructs a bare write operation.

Sourceval get : op -> t

geo o is the write o. Raises Invalid_argument if o is not a write.

Sourceval stamp : t -> string

stamp w is the file write stamp used for caching.

Sourceval mode : t -> int

int w is the mode of the file written by w.

Sourceval file : t -> B0_std.Fpath.t

file w is the file written by w.

Sourceval data : t -> (string, string) result

data w invokes and discards the write data function. If the write data function raises this is turned into an Error _.

Sourceval discard_data : t -> unit

discard_data w discards the write data function.

On This Page
  1. File writes