ICU-6843 Add bulk put method to ByteBuffer.
X-SVN-Rev: 25769
This commit is contained in:
parent
5fd414eb06
commit
7fc8dc6571
@ -76,6 +76,15 @@
|
||||
//## }
|
||||
//## }
|
||||
//##
|
||||
//## public void put(byte[] src, int offset, int length) {
|
||||
//## if (offset < 0 || offset + length > src.length || pos + length > limit) {
|
||||
//## throw new IndexOutOfBoundsException();
|
||||
//## }
|
||||
//## for (int i = offset; i < offset + length; i++) {
|
||||
//## put(src[i]);
|
||||
//## }
|
||||
//## }
|
||||
//##
|
||||
//## public static final ByteBuffer allocate(int size){
|
||||
//## ByteBuffer ret = new ByteBuffer();
|
||||
//## ret.data = new byte[size];
|
||||
|
Loading…
Reference in New Issue
Block a user