package gapi-ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=5cc769af46198deb88707ccb50398088316e60f51db8c36389e6a2aae4c2ad30
md5=d918a22fde1b1d49a9783fb2f932d059
doc/gapi-ocaml.netstring-local/Netchannels/class-rec_in_channel_delegation/index.html
Class Netchannels.rec_in_channel_delegationSource
Description * * This class type is defined in * "Basic I/O class types" * as collaborative effort of several library creators.
method input : Bytes.t -> int -> int -> intReads octets from the channel and puts them into the string. The * first int argument is the position of the substring, and the second * int argument is the length of the substring where the data are * stored. The method returns the number of octets actually read and * stored. * * When the end of the channel is reached and there is no further octet * to read, the exception End_of_file will be raised. This has * been changed in ocamlnet-0.97! In previous releases the number 0 * was returned at the end of the channel. * * When the channel is non-blocking, and there are currently no bytes * to read, the number 0 will be returned. This has * been changed in ocamlnet-0.97! In previous releases this behaviour * was undefined. * * When the channel is closed, the exception Closed_channel will be * raised if an ocamlnet implementation is used. For implementations * of other libraries there is no standard for this case.