Module Qcow_physical
include Ppx_sexp_conv_lib.Sexpable.S with type Qcow_physical.t := t
val is_compressed : t -> boolTrue if the address has been marked as being compressed
val is_mutable : t -> boolTrue if the offset is safe to mutate directly (i.e. is not referenced by a snapshot
val unmapped : tAn unmapped physical address
val make : ?is_mutable:bool -> ?is_compressed:bool -> int -> tCreate an address at the given byte offset. This defaults to
is_mutable = truewhich meand there are no snapshots implying that directly writing to this offset is ok; andis_compressed = false.
val to_sector : sector_size:int -> t -> int64 * intReturn the sector on disk, plus a remainder within the sector
val sector : sector_size:int -> t -> int64Return the sector on disk containing the address
val to_bytes : t -> intReturn the byte offset on disk
val cluster : cluster_bits:int -> t -> Qcow_types.Cluster.tReturn the cluster containing the address
val within_cluster : cluster_bits:int -> t -> intReturn the index within the cluster of the address
val read : Cstruct.t -> tRead a
tfrom the given buffer
val write : t -> Cstruct.t -> unitWrite
tto the buffer
include Qcow_s.PRINTABLE with type t := t
val to_string : t -> stringProduce a pretty human-readable string from a value