Write bytes to an output channel.
;; Writes the BYTES to CHANNEL. Returns STATE. (defund write-bytes-to-channel (bytes channel state) (declare (xargs :stobjs state :guard (and (all-bytep bytes) (symbolp channel) (open-output-channel-p channel :byte state)))) (if (atom bytes) state (pprogn (write-byte$ (car bytes) channel state) (write-bytes-to-channel (cdr bytes) channel state))))