Libraries anvil io InputStream readBinary

int readBinary(binary bin)
int readBinary(binary bin, int offset, int length)
Reads bytes from stream.
Parameters array -  The binary into which the data is written
offset -  The start offset in binary
length -  The maximum number of bytes to read.
Returns Number of bytes read, or -1 if end of stream has been reached.
Throws IOError -  If an I/O error occurs.