1NBD.Buffer(3)                                                    NBD.Buffer(3)
2
3
4

NAME

6       NBD.Buffer - Persistent buffer used in AIO calls.
7

Module

9       Module   NBD.Buffer
10

Documentation

12       Module Buffer
13        : sig end
14
15
16       Persistent buffer used in AIO calls.
17
18
19
20
21
22       type t
23
24
25       Persistent, mutable C-compatible malloc'd buffer, used in AIO calls.
26
27
28
29       val alloc : int -> t
30
31       Allocate an uninitialized buffer.  The parameter is the size in bytes.
32
33
34
35       val to_bytes : t -> bytes
36
37       Copy buffer to an OCaml bytes object.
38
39
40
41       val of_bytes : bytes -> t
42
43       Copy an OCaml bytes object to a newly allocated buffer.
44
45
46
47       val size : t -> int
48
49       Return the size of the buffer.
50
51
52
53
54
55OCamldoc                          2021-05-29                     NBD.Buffer(3)
Impressum