Skip to content
Snippets Groups Projects
Forked from cmucl / cmucl
Source project has a limited visibility.
  • dtc's avatar
    eb2bca57
    Fix for string-stream-read-n-bytes: when the requested number of bytes · eb2bca57
    dtc authored
    is greater than those available, copy all those available and return
    the number copied; it had been simply returning Nil or generating an
    end-of-file error without coping any bytes.
    
    This enables read-sequence to once again use the n-bin method on
    string streams; remove the hack restriction.  Also fix an error in the
    returned element index for the case in which the start index is not
    zero.
    eb2bca57
    History
    Fix for string-stream-read-n-bytes: when the requested number of bytes
    dtc authored
    is greater than those available, copy all those available and return
    the number copied; it had been simply returning Nil or generating an
    end-of-file error without coping any bytes.
    
    This enables read-sequence to once again use the n-bin method on
    string streams; remove the hack restriction.  Also fix an error in the
    returned element index for the case in which the start index is not
    zero.