RFR: 4860681: (bf) Add CharBuffer absolute bulk put method for CharSequence
Chen Liang
liach at openjdk.org
Thu Jul 13 15:18:25 UTC 2023
On Mon, 1 May 2023 20:15:10 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Add to `java.nio.CharBuffer` an absolute bulk put method which takes a `CharSequence` as its source of `char`s.
src/java.base/share/classes/java/nio/X-Buffer.java.template line 1480:
> 1478: * for (int i = start, j = index; i < end; i++, j++)
> 1479: * dst.put(j, csq.charAt(i));
> 1480: * }</pre>
Suggestion:
* {@snippet lang=java :
* for (int i = start, j = index; i < end; i++, j++)
* dst.put(j, csq.charAt(i));
* }
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13744#discussion_r1182042410
More information about the nio-dev
mailing list