package shared-memory-ring

  1. Overview
  2. Docs

Module Ring.BackSource

A stream of readable items

A stream of writable items

Sourceval write : Cstruct.t -> bytes -> int -> int -> int

write stream buf ofs len writes up to len bytes from buf at ofs to stream. If this returns short it means EOF

Sourceval read : Cstruct.t -> bytes -> int -> int -> int

read stream buf ofs len reads up to len bytes to buf at ofs from stream. If this returns short it means EOF

Sourceval unsafe_write : Cstruct.t -> bytes -> int -> int -> int
Sourceval unsafe_read : Cstruct.t -> bytes -> int -> int -> int
OCaml

Innovation. Community. Security.