ICU-6843 Add bulk put method to ByteBuffer.

X-SVN-Rev: 25769
This commit is contained in:
Michael Ow 2009-04-14 20:08:42 +00:00
parent 5fd414eb06
commit 7fc8dc6571

View File

@ -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){ //## public static final ByteBuffer allocate(int size){
//## ByteBuffer ret = new ByteBuffer(); //## ByteBuffer ret = new ByteBuffer();
//## ret.data = new byte[size]; //## ret.data = new byte[size];