Lasso Soft Inc. > Home

[ trait_readBytes->readSomeBytes ]

Method

This method will read and return any bytes available. It will read up to but no more than the number specified by #count (the first parameter). If #timeout (the second parameter) is zero, or is not specified, then this method may return a zero length bytes object. If #timeout is specified and there are no bytes which can be immediately read, then it indicates the number of MILLISECONDS to wait for any bytes to arrive. If no bytes arrive before the timeout expires, null is returned.

If a network disconnection or other networking error occurs during this method, the method will generate a failure.

  • Syntax
trait_readBytes->readSomeBytes(count::integer, timeoutMillis::integer)

trait_readBytes->readSomeBytes(count::integer)
Examples

No examples found

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft