Liya Fan created FLINK-12216:
--------------------------------

             Summary: Respect the number of bytes from input parameters in 
HybridMemorySegment
                 Key: FLINK-12216
                 URL: https://issues.apache.org/jira/browse/FLINK-12216
             Project: Flink
          Issue Type: Bug
            Reporter: Liya Fan
            Assignee: Liya Fan


For the following two methods in HybridMemorySegment class,

public final void get(int offset, ByteBuffer target, int numBytes)

public final void put(int offset, ByteBuffer source, int numBytes) 

the actual number of bytes read/written should be specified by the input 
parameter numBytes, but it does not for some types of ByteBuffer. Instead, it 
simply read/write until the end.

So this is a bug and I am going to fix it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to