package git

  1. Overview
  2. Docs
Git format and protocol in pure OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

git-3.16.1.tbz
sha256=c035bdcccd9e4d2f48c6d9cdc65e61fc10838ecf1d8a6f2a376ae20a8a924803
sha512=8173b5f64ad2e142aa6bd7a1c5b7d895a9e3fbf90b192d8021a32abb9430b62dd426d4b9b5856698fbae1a1bca2c30a22c270f6d361874c3d846533320ca51ea

doc/pkt_line/Pkt_line/Encoder/index.html

Module Pkt_line.EncoderSource

Sourcetype encoder = {
  1. payload : Stdlib.Bytes.t;
  2. mutable pos : int;
}
Sourceval io_buffer_size : int
Sourceval create : unit -> encoder
Sourcetype error = [
  1. | `No_enough_space
]
Sourceval pp_error : error Fmt.t
Sourcetype 'err state =
  1. | Write of {
    1. buffer : string;
    2. off : int;
    3. len : int;
    4. continue : int -> 'err state;
    }
  2. | Error of 'err
  3. | Done
Sourceval safe : (encoder -> [> error ] as 'err state) -> encoder -> 'err state
Sourceval flush : (encoder -> [> error ] as 'err state) -> encoder -> 'err state
Sourceval write : encoder -> string -> unit

write e s writes s into e.payload if there is enough space, i.e., Bytes.length e e.payload - e.pos > String.length s. Otherwise, raises.

  • raises Leave

    `No_enough_space if String.length

Sourceval blit : encoder -> buf:string -> off:int -> len:int -> unit
OCaml

Innovation. Community. Security.