-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add ByteString
conversions for JVM ByteBuffer
#269
Comments
Note: this might slightly overlap with #239, but I still believe it's a different use case, and much easier to add. This is less about using |
@joffrey-bion We already have set of functions wrapping Sinks, Sources, and Buffers into Channels, as well as functions allowing to read/write Are there any scenarios where proposed functions could be used indeed? Would existing NIO-centric extensions work there? |
Yes, this is also something I use in Krossbow to wrap the Java web socket APIs.
Which extensions are you referring to? In my case the goal is to bridge |
But yeah, the use of any of those from above implies additional copies. :( |
Thanks! Ok that was my understanding, so yeah I would still need these more direct helpers then. |
In the same vibe as #266 and #268, it would be nice to have built-in conversions in
kotlinx-io-bytestring
for the JVMByteBuffer
type for a full multi-platform experience.Examples:
Arguably the last one could be a stdlib function instead.
The text was updated successfully, but these errors were encountered: