Lasso Soft Inc. > Home

[ trait_readBytes->readBytesFully ]

Method

This method will read and return the indicated number of bytes. It will attempt to read and return no less than the number of bytes indicated by #count (the first parameter). If no #timeout (the second parameter) is specified, or it is -1, this method will wait indefinitely for the requested number of bytes to be available. If #timeout is specified, it indicates the number of MILLISECONDS to wait for the indicated number of bytes to be read. If this timeout expires before #count bytes have been read, the #timeoutCallback (third parameter), if given, is invoked and passed the bytes which had been read up to that point. The method then returns those bytes as the result of the method.

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

  • Syntax
trait_readBytes->readBytesFully(count::integer, timeoutMillis::integer, timeoutCallback)
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 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft