8219014: (bf) Add absolute bulk put methods which accept a source Buffer

Reviewed-by: psandoz, alanb
This commit is contained in:
Brian Burkhalter 2020-11-05 16:27:49 +00:00
parent 3a02578b33
commit a50fdd5484
4 changed files with 189 additions and 19 deletions

View file

@ -416,6 +416,16 @@ class Direct$Type$Buffer$RW$$BO$
#end[rw]
}
public $Type$Buffer put(int index, $Type$Buffer src, int offset, int length) {
#if[rw]
checkSegment();
super.put(index, src, offset, length);
return this;
#else[rw]
throw new ReadOnlyBufferException();
#end[rw]
}
public $Type$Buffer put($type$[] src, int offset, int length) {
#if[rw]
checkSegment();