Join Slack
as there are unsigned arrays, I'd like the stdlib having the unsigned counterparts of `*Buffer`s
# stdlib
e
elect
10/28/2022, 9:06 PM
as there are unsigned arrays, I'd like the stdlib having the unsigned counterparts of `*Buffer`s
e
ephemient
10/31/2022, 1:37 AM
did you check the docs
ephemient
10/31/2022, 1:37 AM
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int-array/
ephemient
10/31/2022, 1:39 AM
they don't carry stateful position like NIO buffers (although I'm not sure if that's what you're referring to)
e
elect
10/31/2022, 9:09 AM
I mean,
UByteBuffer
, and so on
e
ephemient
10/31/2022, 2:46 PM
ByteArray is a multiplatform Kotlin class (that happens to be backed by
byte[]
on JVM), ByteBuffer is a Java NIO class (with no Kotlin equivalent). so I think it is reasonable to expect UByteArray but not UByteBuffer
10
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by