package vhd-format

  1. Overview
  2. Docs
type 'a t = [
  1. | `Copy of 'a * int64 * int64
    (*

    Copy (t, offset, len) copies len sectors from sector offset from the file t

    *)
  2. | `Sectors of Cstruct.t
    (*

    a new sector (e.g. for metadata)

    *)
  3. | `Empty of int64
    (*

    empty space in sectors

    *)
]

A disk can be streamed as a sequence of elements

val to_string : 'a t -> string
val len : 'a t -> int64

len t is the length of t in sectors