Bigstring IO helpers
include module type of sig ... endval create : int ‑> tval length : t ‑> intval blit_string_t : src:string ‑> src_pos:int ‑> dst:t ‑> dst_pos:int ‑> len:int ‑> unitval blit_t_bytes : src:t ‑> src_pos:int ‑> dst:Bytes.t ‑> dst_pos:int ‑> len:int ‑> unitval sub_string : t ‑> pos:int ‑> len:int ‑> stringval index : t ‑> pos:int ‑> len:int ‑> char:char ‑> int optionval rindex : t ‑> pos:int ‑> len:int ‑> char:char ‑> int optionval with_temporary : size:int ‑> f:(t ‑> 'a) ‑> 'atype ('a, 'b) fold_temporary_result = ('a, 'b) Shexp_bigstring__Bigstring.fold_temporary_result = | Resize of {
} | ||
| Continue of {
} | ||
| Return of 'b |
val fold_temporary : size:int ‑> init:'a ‑> f:(t ‑> 'a ‑> ('a, 'b) fold_temporary_result) ‑> 'bval write : Unix.file_descr ‑> t ‑> pos:int ‑> len:int ‑> intval read : Unix.file_descr ‑> t ‑> pos:int ‑> len:int ‑> intval read_all_interruptible : ?delay:float ‑> Unix.file_descr ‑> stop:(unit ‑> bool) ‑> read_all_interruptible_resultSame as read_all except that stop is called every delay seconds until it returns
true. In this case returns prematurely the data collected so far.