package vhd-format

  1. Overview
  2. Docs
type t = {
  1. features : Feature.t list;
  2. data_offset : int64;
    (*

    For dynamic and differencing disks, this is the absolute byte offset from the beginning of the file to the next structure. For fixed disks the value is undefined.

    *)
  3. time_stamp : int32;
    (*

    Creation time in seconds since midnight on January 1, 2000

    *)
  4. creator_application : string;
    (*

    Name of the application which created the image

    *)
  5. creator_version : int32;
    (*

    Version number of the application which created the image

    *)
  6. creator_host_os : Host_OS.t;
  7. original_size : int64;
    (*

    size of the virtual disk in bytes at creation time

    *)
  8. current_size : int64;
    (*

    size of the virtual disk in bytes now

    *)
  9. geometry : Geometry.t;
  10. disk_type : Disk_type.t;
  11. checksum : int32;
    (*

    one's complement checksum of the footer with the checksum set to 0l

    *)
  12. uid : Uuidm.t;
    (*

    128-bit UUID

    *)
  13. saved_state : bool;
    (*

    true if the virtual machine is in a saved (suspended) state

    *)
}
val create : ?features:Feature.t list -> data_offset:int64 -> ?time_stamp:int32 -> ?creator_application:string -> ?creator_version:int32 -> ?creator_host_os:Host_OS.t -> current_size:int64 -> ?original_size:int64 -> disk_type:Disk_type.t -> ?uid:Uuidm.t -> ?saved_state:bool -> unit -> t
val compute_checksum : t -> int32

compute the expected checksum value

val default_creator_application : string
val default_creator_version : int32
val sizeof : int
val marshal : Cstruct.t -> t -> t
val unmarshal : Cstruct.t -> (t, exn) result
val to_string : t -> string
OCaml

Innovation. Community. Security.