We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For a lot of my use-cases, I would need some shared read-only buffer views with random-access capability.
The needed features would be:
Here is a proposed tentative design:
public fun Source.readView(byteCount: Long): BufferView public fun Buffer.copyToView(startIndex: Long = 0L, endIndex: Long = size): BufferView public class BufferView : AutoCloseableAlias { override fun close() public val size: Long public fun getByte(position: Long): Byte public fun getShort(position: Long): Short public fun getInt(position: Long): Int public fun getLong(position: Long): Long public fun slice(startIndex: Long = 0L, endIndex: Long = size): BufferView }
I experimented with this design in this branch: https://github.com/ptitjes/kotlinx-io/tree/read-random-access
Corresponding discussion on kotlinlang's Slack: https://kotlinlang.slack.com/archives/CKCAAV8VB/p1694429247586879
This issue is dependent on #135.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For a lot of my use-cases, I would need some shared read-only buffer views with random-access capability.
The needed features would be:
Here is a proposed tentative design:
I experimented with this design in this branch: https://github.com/ptitjes/kotlinx-io/tree/read-random-access
Corresponding discussion on kotlinlang's Slack: https://kotlinlang.slack.com/archives/CKCAAV8VB/p1694429247586879
This issue is dependent on #135.
The text was updated successfully, but these errors were encountered: