Skip to content

feat: add writeBuffer() and readBuffer() to sink contract - #247

Merged
trygve-lie merged 1 commit into
mainfrom
feat/write-read-buffer
Aug 25, 2026
Merged

feat: add writeBuffer() and readBuffer() to sink contract#247
trygve-lie merged 1 commit into
mainfrom
feat/write-read-buffer

Conversation

@trygve-lie

Copy link
Copy Markdown
Contributor

Adds writeBuffer() and readBuffer() as non-breaking additions to the Sink base class. Both throw 'not implemented' by default. Existing sinks continue to work unchanged; implementations that support the new methods can override them.

Adds two new methods to the base Sink class for buffer-based reads and
writes without any stream infrastructure. Implementations throw by
default so existing sinks that do not yet support these methods fail
clearly rather than silently.
@trygve-lie
trygve-lie merged commit e35ef93 into main Aug 25, 2026
6 checks passed
@trygve-lie
trygve-lie deleted the feat/write-read-buffer branch August 25, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant