Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Reader : Ring.READABLE
A stream of readable items
module Writer : Ring.WRITABLE
A stream of writable items
write stream buf ofs len
writes up to len
bytes from buf
at ofs
to stream
. If this returns short it means EOF
read stream buf ofs len
reads up to len
bytes to buf
at ofs
from stream
. If this returns short it means EOF