-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting flexi-stream-position has no effect on the next byte read #35
Comments
The behavior of (setf flexi-stream-position) isn't documented anywhere. You should use FILE-POSITION. |
Hi. Thanks for a quick response. |
Is the issue with double buffering? I.e. file-position should clear the flexi-stream buffer of unread bytes? |
Suppose I am reading a stream, using I'm not at all familiar with flexi-stream, just started playing with it this week. What I was looking for is to have |
flexi-stream-position is not really properly documented, so the most intuitive thing would be not to have it and only rely on file-position. Which, at the moment, doesn't play well with the buffering that flexi-streams is performing. |
Running
returns the first byte, while I would expect the second byte. This happens on SBCL for me. I don't know if it's a bug or intended behavior, however in the latter case might be good to update the documentation.
The text was updated successfully, but these errors were encountered: