package b0
Software construction and deployment kit
Install
Dune Dependency
Authors
Maintainers
Sources
b0-0.0.5.tbz
sha512=00a6868b4dfa34565d0141b335622a81a0e8d5b9e3c6dfad025dabfa3df2db2a1302b492953bbbce30c3a4406c324fcec25250a00b38f6d18a69e15605e3b07e
doc/b0.std/B0_std/Os/Fd/index.html
Module Os.Fd
File descriptors operations.
unix_buffer_size
is the value of the OCaml runtime system buffer size for I/O operations.
val apply :
close:(Unix.file_descr -> unit) ->
Unix.file_descr ->
(Unix.file_descr -> 'a) ->
'a
apply ~close fd f
calls f fd
and ensure close fd
is is called whenever the function returns. Any Unix.Unix_error
raised by close fd
is ignored.
val copy : ?buf:Bytes.t -> src:Unix.file_descr -> Unix.file_descr -> unit
copy ~buf ~src dst
reads src
and writes it to dst
using buf
as a buffer; if unspecified a buffer of length unix_buffer_size
is created for the call. Raise Unix.Unix_error
if that happens
val to_string : Unix.file_descr -> string
to_string fd
reads fd
to a string. Raises Unix.Unix_error
in case of error.
val read_file : string -> Unix.file_descr -> string
read_file fn fd
reads fd
to a string assuming it is a file descriptor open on file path fn
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>