.TH "NBD.Buffer" 3 2021-02-09 OCamldoc "" .SH NAME NBD.Buffer \- Persistent buffer used in AIO calls. .SH Module Module NBD.Buffer .SH Documentation .sp Module .BI "Buffer" : .B sig end .sp Persistent buffer used in AIO calls\&. .sp .sp .sp .I type t .sp Persistent, mutable C\-compatible malloc\&'d buffer, used in AIO calls\&. .sp .I val alloc : .B int -> t .sp Allocate an uninitialized buffer\&. The parameter is the size in bytes\&. .sp .I val to_bytes : .B t -> bytes .sp Copy buffer to an OCaml .ft B bytes .ft R object\&. .sp .I val of_bytes : .B bytes -> t .sp Copy an OCaml .ft B bytes .ft R object to a newly allocated buffer\&. .sp .I val size : .B t -> int .sp Return the size of the buffer\&. .sp