Module Qcow_types.Int32
include module type of Stdlib.Int32
val neg : int32 -> int32
val add : int32 -> int32 -> int32
val sub : int32 -> int32 -> int32
val mul : int32 -> int32 -> int32
val div : int32 -> int32 -> int32
val unsigned_rem : int32 -> int32 -> int32
val succ : int32 -> int32
val pred : int32 -> int32
val abs : int32 -> int32
val max_int : int32
val min_int : int32
val logand : int32 -> int32 -> int32
val logor : int32 -> int32 -> int32
val logxor : int32 -> int32 -> int32
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.