Module Qcow_physical
include Ppx_sexp_conv_lib.Sexpable.S with type Qcow_physical.t := t
- val is_compressed : t -> bool
- True if the address has been marked as being compressed 
- val is_mutable : t -> bool
- True if the offset is safe to mutate directly (i.e. is not referenced by a snapshot 
- val unmapped : t
- An unmapped physical address 
- val make : ?is_mutable:bool -> ?is_compressed:bool -> int -> t
- Create 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; and- is_compressed = false.
- val to_sector : sector_size:int -> t -> int64 * int
- Return the sector on disk, plus a remainder within the sector 
- val sector : sector_size:int -> t -> int64
- Return the sector on disk containing the address 
- val to_bytes : t -> int
- Return the byte offset on disk 
- val cluster : cluster_bits:int -> t -> Qcow_types.Cluster.t
- Return the cluster containing the address 
- val within_cluster : cluster_bits:int -> t -> int
- Return the index within the cluster of the address 
- val read : Cstruct.t -> t
- Read a - tfrom the given buffer
- val write : t -> Cstruct.t -> unit
- Write - tto the buffer
include Qcow_s.PRINTABLE with type t := t
- val to_string : t -> string
- Produce a pretty human-readable string from a value