Skip to content

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Oct 2, 2025

This map could be used to associate an object with a ByteBuffer for tunneling through APIs that only take ByteBuffer. For example, and implementation supporting transferTo could associate a particular Content.Source with an empty buffer and write that to a Sink. If the ultimate implementation of the sink takes the source and uses it, then no more writes are necessary, otherwise the content has to be written normally (i.e. as an alternative mechanism for #13631)

This map could be used to associate an object with a ByteBuffer for tunneling through APIs that only take ByteBuffer.  For example, and implementation supporting transferTo could associate a particular Content.Source with an empty buffer and write that to a Sink.  If the ultimate implementation of the sink takes the source and uses it, then no more writes are necessary, otherwise the content has to be written normally.
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