Module Qcow_virtual
type t={l1_index : int64;l2_index : int64;cluster : int64;}A virtual address in a qcow image is broken into 3 levels:
- an index in the L1 table, pointing to
- an index in the L2 table, pointing to
- a cluster within which we need an offset
include Ppx_sexp_conv_lib.Sexpable.S with type Qcow_virtual.t := t
val make : cluster_bits:int -> int64 -> tmake cluster_bits bytecomputes the address within the file of the virtualbyteoffset
val to_offset : cluster_bits:int -> t -> int64to_offset cluster_bits addresscomputes the virtual byte offset of the virtual address
include Qcow_s.PRINTABLE with type t := t
val to_string : t -> stringProduce a pretty human-readable string from a value