Module Qcow_types.Int64
include module type of Stdlib.Int64
val neg : int64 -> int64
val add : int64 -> int64 -> int64
val sub : int64 -> int64 -> int64
val mul : int64 -> int64 -> int64
val div : int64 -> int64 -> int64
val unsigned_rem : int64 -> int64 -> int64
val succ : int64 -> int64
val pred : int64 -> int64
val abs : int64 -> int64
val max_int : int64
val min_int : int64
val logand : int64 -> int64 -> int64
val logor : int64 -> int64 -> int64
val logxor : int64 -> int64 -> int64
val shift_left : int64 -> int -> int64
val shift_right : int64 -> int -> int64
val shift_right_logical : int64 -> int -> int64
val of_int : int -> int64
val to_int : int64 -> int
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val of_int64 : int64 -> t
val to_int64 : t -> int64
val round_up : int64 -> int64 -> int64
round_up value to
roundsvalue
to the next multiple ofto
module IntervalSet = Qcow_int64.IntervalSet
module Map = Qcow_int64.Map
include Qcow_s.SERIALISABLE with type t := t
val sizeof : t -> int
The size of a buffer needed to hold
t
val read : Cstruct.t -> (t * Cstruct.t, [ `Msg of string ]) Result.result
Read a
t
from the given buffer and return it, along with the unused remainder of the buffer. If the buffer cannot be parsed then return an error.
val write : t -> Cstruct.t -> (Cstruct.t, [ `Msg of string ]) Result.result
Write a
t
into the given buffer. If the buffer is too small, then return an error. Return the unused remainder of the buffer.