prettym

An memory-bounded encoder according to RFC 822
IN THIS PACKAGE
Module Prettym . IOVec
type t = {
buffer : Buffer.t;
off : int;
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.