( begin auto-generated from Client_available.xml ) Returns the number of bytes available. When any client has bytes available from the server, it returns the number of bytes. ( end auto-generated ) @webref client:client @usage application @brief Returns the number of bytes in the buffer waiting to
()
| 351 | * @brief Returns the number of bytes in the buffer waiting to be read |
| 352 | */ |
| 353 | public int available() { |
| 354 | synchronized (bufferLock) { |
| 355 | return (bufferLast - bufferIndex); |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | |
| 360 | /** |