read.InputStream: Reads the next byte of data

Description Usage Arguments Value Author(s) See Also

Description

Reads the next byte of data.

Usage

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

Arguments

b

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

off

Offset in buffer vector where to start writing. Default is 0.

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 is NULL, one byte will be read. Default value is NULL.

Value

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

Author(s)

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

See Also

For more information see InputStream.


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