This is an automated email from the ASF dual-hosted git repository. sewen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 541e413c9053ab3be030e6079333dca7779e2305 Author: Stephan Ewen <[email protected]> AuthorDate: Sun Apr 14 14:52:05 2019 +0200 [hotfix] Expand JavaDoc of MemorySegment.wrap() --- .../src/main/java/org/apache/flink/core/memory/MemorySegment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java b/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java index 614696c..0331736 100644 --- a/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java +++ b/flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java @@ -271,7 +271,8 @@ public abstract class MemorySegment { /** * Wraps the chunk of the underlying memory located between <tt>offset</tt> and - * <tt>length</tt> in a NIO ByteBuffer. + * <tt>length</tt> in a NIO ByteBuffer. The ByteBuffer has the full segment as capacity + * and the offset and length parameters set the buffers position and limit. * * @param offset The offset in the memory segment. * @param length The number of bytes to be wrapped as a buffer.
