NBD.Buffer(3) | NBD.Buffer(3) |
NBD.Buffer - Persistent buffer used in AIO calls.
Module NBD.Buffer
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.
2023-01-04 | OCamldoc |