You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 0.1.16, ChannelAsInput.readFully(ByteBuffer) throws an IllegalArgumentException: Not enough bytes available (0) to read 128 bytes, when a similar call using a ByteArray instead of a ByteBuffer works fine.
e.g.:
funtest(sbc:SeekableByteChannel) {
valLENGTH=128
sbc.position(sbc.size() -LENGTH)
sbc.asInput().readFully(ByteBuffer.allocateDirect(LENGTH)) // throws exception// sbc.asInput().readFully(ByteArray(LENGTH), 0, LENGTH) // substituting this line for the one above works without exception
}
We're rebooting the kotlinx-io development (see #131), all issues related to the previous versions will be closed. Consider reopening it if the issue remains (or the feature is still missing) in a new version.
In 0.1.16,
ChannelAsInput.readFully(ByteBuffer)
throws anIllegalArgumentException: Not enough bytes available (0) to read 128 bytes
, when a similar call using aByteArray
instead of aByteBuffer
works fine.e.g.:
Using:
kotlinx-io: 0.1.16
kotlin: 1.3.70
java: AdoptOpenJDK (build 13.0.2+8)
gradle: 6.2.1
macOS: 10.15.3
The text was updated successfully, but these errors were encountered: