package nbd

  1. Overview
  2. Docs

Every option the client requests has the same header.

type t = {
  1. ty : Option.t;
    (*

    The option type

    *)
  2. length : int32;
    (*

    The length of the option data

    *)
}

The header of an option request sent by the client

include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val sizeof : int
val marshal : Cstruct.t -> t -> unit
val unmarshal : Cstruct.t -> [ `Ok of t | `Error of exn ]