package progress

  1. Overview
  2. Docs
User-definable progress bars

Install

Dune Dependency

Authors

Maintainers

Sources

progress-0.3.0.tbz
sha256=3dfd00bd4def773239159b17781d02fdbfd8ea191801681a94aa0a5be1d06b7c
sha512=fd64ff8a819b2db2460c06b7fbd5663e2a1941f9e2d4e9b921a3d5f24509fe3be543521fbe1bb6baedad9f62b579aae933efac3903db03a27385233f5461f09c

doc/progress.engine/Progress_engine/Make/Line/Internals/Line_buffer/index.html

Module Internals.Line_bufferSource

Sourcetype t

A line buffer is a variant of Stdlib.Buffer that supports skipping some section of the underlying bytestring when doing a write pass.

Sourceval create : size:int -> t

Create a line buffer with the given initial size.

Sourceval with_ppf : t -> (Format.formatter -> 'a) -> 'a

with_ppf buf f gives a view of buf as a formatter to f (and then flushes the formatter to buf).

Sourceval add_char : t -> char -> unit
Sourceval add_string : t -> string -> unit
Sourceval add_substring : t -> string -> off:int -> len:int -> unit
Sourceval add_line_buffer : dst:t -> src:t -> unit
Sourceval lift_write : len:int -> write:('a -> into:bytes -> pos:int -> unit) -> (t -> 'a -> unit) Progress_engine__.Stdlib_ext.Staged.t
Sourceval contents : t -> [ `Clean of string | `Dirty of string ]

Reset the write head to the start of the buffer and return a copy of the intervening contents.

Sourceval reset : t -> unit
Sourcetype mark
Sourceval current_position : t -> mark

Get a mark of the current write head in the buffer.

Sourcemodule Span : sig ... end
Sourceval skip : t -> Span.t -> unit

Advance over a given span in the buffer.

OCaml

Innovation. Community. Security.