Skip to content

Setting flexi-stream-position has no effect on the next byte read #35

Description

@andrei-dubovik

Running

(with-open-file (in "2-byte-file" :element-type '(unsigned-byte 8))
  (setq in (make-flexi-stream in))
  (setf (flexi-stream-position in) 1)
  (read-byte in))

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions