KurtYoung commented on a change in pull request #7847: [FLINK-11724][core] Add 
util method to MemorySegment
URL: https://github.com/apache/flink/pull/7847#discussion_r261034316
 
 

 ##########
 File path: 
flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java
 ##########
 @@ -1270,6 +1270,34 @@ else if (target.address > target.addressLimit) {
                }
        }
 
+       /**
+        * Bulk copy method. Copies {@code numBytes} bytes to target unsafe 
object and pointer.
+        * NOTE: This is a unsafe method, no check here, please be carefully.
+        */
+       public final void copyToUnsafe(int offset, Object target, int 
targetPointer, int numBytes) {
 
 Review comment:
   Can you add some comments to explain the meanings of each parameter

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to