Module Proto.Rread
An Rread returns the requested data from a file. It is not an error for the data returned to be less than the data requested.
val data : t -> Iovec.t
The requested data. The data is not copied, and will be lost if the underlying storage is modified. It is not considered an error for this to be less than the number of bytes requested, but it shall not be greater.
val alloc : Iovec.ring -> max:int -> t
alloc iov ~count
writes and returns anRread
message toiov
with a payload of up tomax
bytes. It does not populate or clear the payload. The caller must fill the message'sdata
field and usecommit
to update the message's count header. Care must be taken to avoid sending the uninitialized message.