public final CheckedMemorySegment get ( int index , byte [ ] dst , int offset , int length ) { if ( index >= 0 && index < this . size && index <= this . size - length && offset <= dst . length - length ) { System . arraycopy ( this . memory , this . offset + index , dst , offset , length ) ; return this ; } else { throw new IndexOutOfBoundsException ( ) ; } }
Bulk get method . Copies length memory from the specified position to the destination memory beginning at the given offset