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 Sexplib0.Sexpable.S with type t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val sizeof : int
val marshal : Cstruct.t -> t -> unit
val unmarshal : Cstruct.t -> (t, exn) Stdlib.result
OCaml

Innovation. Community. Security.