package bytesrw

  1. Overview
  2. Docs
Composable byte stream readers and writers for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

bytesrw-0.2.0.tbz
sha512=e3f07dbd808e152cd4b2ea5c2fa3863d4b72f7f97cfa3cd7493a3725c84f39d882042388ee47c9d6acfd30a650c21db429c8264db3d7466cad6e580308b5a2d2

doc/bytesrw.unix/Bytesrw_unix/index.html

Module Bytesrw_unixSource

Unix file descriptor byte stream readers and writers.

bytes_reader_of_fd fd reads bytes from fd with slices of maximal length slice_length (defaults to Bytesrw.Bytes.Slice.unix_io_buffer_size). pos defaults to the fd position as determined by Unix.lseek. Reads are retried on Unix.error.EINTR but both this function and the resulting reader may raise Unix.Unix_error.

bytes_writer_of_fd fd writes bytes to fd. The hinted slice_length defaults to Bytesrw.Bytes.Slice.unix_io_buffer_size. pos defaults to the fd position as determined by Unix.lseek. Writes are retried on Unix.error.EINTR but both this function and the resulting writer may raise Unix.Unix_error.

OCaml

Innovation. Community. Security.