package bytesrw
Composable byte stream readers and writers for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
bytesrw-0.1.0.tbz
sha512=fd1ee852cf9d8c3b1800d4927c18453b18385b49354fb3ea71ae08f1ca640741c0594863c5db339432da55a9ee42e4fdbc8d6ef0afe29a375aac1ec6cee11c0b
doc/bytesrw.unix/Bytesrw_unix/index.html
Module Bytesrw_unix
Unix
file descriptor byte stream readers and writers.
val bytes_reader_of_fd :
?pos:Bytesrw.Bytes.Stream.pos ->
?slice_length:Bytesrw.Bytes.Slice.length ->
Unix.file_descr ->
Bytesrw.Bytes.Reader.t
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
.
val bytes_writer_of_fd :
?pos:Bytesrw.Bytes.Stream.pos ->
?slice_length:Bytesrw.Bytes.Slice.length ->
Unix.file_descr ->
Bytesrw.Bytes.Writer.t
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
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>