NBD.Buffer(3)
Persistent buffer used in AIO calls.
Description
NBD.Buffer
NAME
NBD.Buffer - Persistent buffer used in AIO calls.
Module
Module NBD.Buffer
Documentation
Module
Buffer
: sig end
Persistent buffer used in AIO calls.
type t
Persistent, mutable C-compatible malloc’d buffer, used in AIO calls.
val alloc : int -> t
Allocate an uninitialized buffer. The parameter is the size in bytes.
val to_bytes : t -> bytes
Copy buffer to an OCaml bytes object.
val of_bytes : bytes -> t
Copy an OCaml bytes object to a newly allocated buffer.
val size : t -> int
Return the size of the buffer.