Scieneer Common Lisp 1.3.9 online documentation

ext:stream-write-bytes stream bytes start end waitp[Generic Function]

Attempt to write the bytes vector from the start to the end position to the stream, returning the number of bytes written. If waitp is true, then wait until all bytes have been written before returning. When waitp is false, write as many bytes as possible without blocking, returning the number of bytes written which may be zero. The write bypasses the stream output buffer. Called by write-bytes to write the stream buffer. Every buffered binary output stream must define a method for this function. When less bytes are written than requested, the function ext:stream-waiting-file-descriptor may be called to find the file descriptor and directions blocked and when ready the function may be called again to continue the operation.