DitchOoM / buffer

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

Need absolute access functions #34

Closed clydebarrow closed 1 year ago

clydebarrow commented 1 year ago

The ByteBuffer functions that allow fetching a data item from a specific position without moving the pointers are needed to make this a useful replacement for ByteBuffer, e.g. ByteBuffer.get(index) returns the byte at index without moving the position.

thebehera commented 1 year ago

Would https://github.com/DitchOoM/buffer/pull/35 work?

clydebarrow commented 1 year ago

On a quick look, it appears to have the necessary functionality.