Skip to content

Have Buffer class implement the Seekable interface#361

Open
thekid wants to merge 8 commits intoxp-framework:mainfrom
thekid:feature/seekable-buffers
Open

Have Buffer class implement the Seekable interface#361
thekid wants to merge 8 commits intoxp-framework:mainfrom
thekid:feature/seekable-buffers

Conversation

@thekid
Copy link
Copy Markdown
Member

@thekid thekid commented Apr 20, 2026

This pull request makes the io.streams.Buffer class useable for more I/O purposes. The file pointer is advanced for read and write operations, just like inside io.File instances!

TODO

  • Implement io.streams.Seekable.
  • Add support for passing io.File instances to constructor
  • Add $persist parameter to constructor to keep passed files

thekid added 2 commits April 20, 2026 20:45
If an `io.TempFile` instance is passed, its destructor may have
deleted the file itself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant