(let ((byte (sap-ref-8 sap head)))
,in-expr))
(defun ,resync-function (stream)
- (loop (input-at-least stream 1)
+ (loop (input-at-least stream 2)
(incf (fd-stream-ibuf-head stream))
(unless (block decode-break-reason
(let* ((sap (fd-stream-ibuf-sap stream))
(head (fd-stream-ibuf-head stream))
(byte (sap-ref-8 sap head))
(size ,in-size-expr))
- ,in-expr)
+ (input-at-least stream size)
+ (let ((sap (fd-stream-ibuf-sap stream))
+ (head (fd-stream-ibuf-head stream)))
+ ,in-expr))
nil)
(return))))
(setf *external-formats*