Skip to content

Commit

Permalink
[hotfix] Expand JavaDoc of MemorySegment.wrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanEwen committed May 10, 2019
1 parent 754cd71 commit 541e413
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ public long getAddress() {

/**
* 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.
Expand Down

0 comments on commit 541e413

Please sign in to comment.