Copies buffered data from an async-io-state and discards it from the state.
comm
async-io-state-get-buffered-data async-io-state buffer &key start end => length
async-io-state⇩ |
An async-io-state. |
buffer⇩ |
A cl:base-string or an 8-bit cl:simple-array. |
start⇩ |
A lower bounding index designator for buffer. |
end⇩ |
An upper bounding index designator for buffer. |
length⇩ |
A non-negative integer. |
The function async-io-state-get-buffered-data
copies to the buffer buffer (between start and end) as much as possible of the buffered data in async-io-state and discards it from async-io-state.
The default value of start is 0. The default value of end is the length of buffer.
The return value length is the number of elements copied into buffer.
async-io-state-get-buffered-data
cannot be called while an operation is active in async-io-state, that is between the call to async-io-state-read-buffer or async-io-state-write-buffer, and the call to the callback or async-io-state-abort, or between a call to async-io-state-read-with-checking and the call to async-io-state-finish or async-io-state-abort.
Use async-io-state-buffered-data-length to find how much buffered data there is in async-io-state.
async-io-state-buffered-data-length
25.7.2 The Async-I/O-State API
25 TCP and UDP socket communication and SSL
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26