public ByteBuffer append ( byte [ ] bytes , int off , int len ) { int newCount = count + len ; ensureCapacity ( newCount ) ; System . arraycopy ( bytes , off , buf , count , len ) ; count = newCount ; return this ; }
Writes the given data to this buffer .