package cactus

  1. Overview
  2. Docs
module Int63 = Optint.Int63
type int63 = Int63.t
val pread : fd:Unix.file_descr -> fd_offset:int63 -> buffer:bytes -> buffer_offset:int -> length:int -> int

Reads up to length bytes from fd (starting at position fd_offset) into buffer (starting at position buffer_offset). Returns the number of bytes actually read. fd's cursor position is unchanged.

val pwrite : fd:Unix.file_descr -> fd_offset:int63 -> buffer:bytes -> buffer_offset:int -> length:int -> int

Writes up to length bytes from buffer (starting at position buffer_offset) to the file descriptor fd (starting at position fd_offset). Returns the number of bytes actually written. fd's cursor position is unchanged.

OCaml

Innovation. Community. Security.