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) result
OCaml

Innovation. Community. Security.