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
/** * Reads a sequence of bytes from this channel into the given buffer. * * <p> Bytes are read starting at this channel's current position, and * then the position is updated with the number of bytes actually read. * Otherwise this method behaves exactly as specified in the {@link * ReadableByteChannel} interface. */
This method is not reading data into the supplied byte buffer at all. In the Java source code, many of the implementations that implement this method use the static method IOUtil.read. Within that implementation you can see that data is clearly being read into the ByteBuffer. Whereas in the MantaSeekableByteChannel implementation no data is being read into the ByteBuffer.
The text was updated successfully, but these errors were encountered:
Looking at our implementation of MantaSeekableByteChannel.read(ByteBuffer) it appears that we don't follow the API contract:
Interface documentation:
This method is not reading data into the supplied byte buffer at all. In the Java source code, many of the implementations that implement this method use the static method
IOUtil.read
. Within that implementation you can see that data is clearly being read into theByteBuffer
. Whereas in theMantaSeekableByteChannel
implementation no data is being read into theByteBuffer
.The text was updated successfully, but these errors were encountered: