package iostream
Generic, composable IO input and output streams
Install
Dune Dependency
Authors
Maintainers
Sources
iostream-0.3.tbz
sha256=0bf255c06593a3cd72a44eaf3fb4568fc42c8771afe5bcee8d63ea662ee7f009
sha512=68ff56d48b2fcbd34ef2c15f6a8969543caa5c5e6b14177a0fde1e2b12d2fe52448d233e02cd1ab2529f74f48b31954ae8ec9e22601cfda6d3c38ce667c1b851
doc/src/iostream.types/iostream_types.ml.html
Source file iostream_types.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
module Slice = struct type t = { bytes: bytes; (** Bytes *) mutable off: int; (** Offset in bytes *) mutable len: int; (** Length of the slice. Empty slice has [len=0] *) } end module Seekable = struct class type t = object method seek : int -> unit method pos : unit -> int end end module In = struct class type t = object method input : bytes -> int -> int -> int (** Read into the slice. Returns [0] only if the stream is closed. *) method close : unit -> unit (** Close the input. Must be idempotent. *) end class type t_seekable = object inherit t inherit Seekable.t end end module In_buf = struct class type t = object inherit In.t method fill_buf : unit -> Slice.t method consume : int -> unit end end module Out = struct class type t = object method output : bytes -> int -> int -> unit method close : unit -> unit end class type t_seekable = object inherit t inherit Seekable.t end end module Out_buf = struct class type t = object method output_char : char -> unit method output : bytes -> int -> int -> unit method flush : unit -> unit method close : unit -> unit end class type t_seekable = object inherit t inherit Seekable.t end end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>