package mrmime

  1. Overview
  2. Docs
type t = {
  1. buffer : Encoder__.Enclosure.Buffer.t;
  2. off : int;
  3. len : int;
}

Type of IOVec.

val weight : t -> int

Weight of t.

val length : t -> int

Length (in bytes) of t.

val lengthv : t list -> int

Length (in bytes) of a list of t.

val shift : t -> int -> t

shift t n shifts n bytes on t.

val split : t -> int -> t * t

split t off splits t at off point.

val merge : t -> t -> t option

merge a b tries to merge a and b into a new t.

OCaml

Innovation. Community. Security.