(ensure-full-read chan buf body-len)Ensures the ByteBuffer contains at least 'body-len' bytes starting from its current position. Reads more data from the channel if needed, re-allocating the buffer if required.
Ensures the ByteBuffer contains at least 'body-len' bytes starting from its current position. Reads more data from the channel if needed, re-allocating the buffer if required.
(read-fully channel buffer)Reads bytes from the SocketChannel into the buffer until the buffer is full (i.e., position reaches limit), or the channel reaches end-of-stream. Returns the total number of bytes read in this call.
Reads bytes from the SocketChannel into the buffer until the buffer is full (i.e., position reaches limit), or the channel reaches end-of-stream. Returns the total number of bytes read in this call.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |