package nbd

  1. Overview
  2. Docs

Module Protocol.OptionRequestHeaderSource

Every option the client requests has the same header.

Sourcetype 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
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval sizeof : int
Sourceval marshal : Cstruct.t -> t -> unit
Sourceval unmarshal : Cstruct.t -> (t, exn) result