DitchOoM / buffer

Kotlin Multiplatform bytebuffer/byte[] wrapper
Apache License 2.0
63 stars 5 forks source link

readBytes(size) - return a shared subsequence buffer and update the original position #32

Closed thebehera closed 1 year ago

thebehera commented 1 year ago

add fun readBytes(size: Int): ReadBuffer so we can read a shared subsequence buffer while also adjusting the position of the original buffer. Changes in the original buffer will reflect in this new buffer.