You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/02/28 03:20:27 UTC

[GitHub] KurtYoung commented on a change in pull request #7847: [FLINK-11724][core] Add util method to MemorySegment

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:
users@infra.apache.org


With regards,
Apache Git Services