read.ConnectionInputStream: Reads the next byte of data from the connection stream

Description Usage Arguments Value Author(s) See Also Examples

Description

Reads the next byte of data from the connection stream.

Usage

1
2
## S3 method for class 'ConnectionInputStream'
read(this, b=NULL, off=0, len=NULL, ...)

Arguments

b

An optional vector to be filled with len bytes starting at position offset.

off

Offset in buffer vector where to start writing.

len

Maximum number of bytes to be read. If NULL, the length of the buffer minus the offset will instead be used. If both b and len are NULL, one byte will be read.

Value

Returns the next byte of data. If end of the file is reached, -1 is returned.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see ConnectionInputStream.

Examples

1
## Not run: See example in help(ConnectionInputStream) for an example.

HenrikBengtsson/R.io documentation built on May 6, 2019, 11:54 p.m.