src/org/kocakosm/pitaya/util/ByteBuffer.java
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;
	}
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;
	}
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.

@param bytes the data to write.
@param off the offset.
@param len the number of bytes to write.

@return this object.

@throws NullPointerException if {@code bytes} is {@code null}.
@throws IndexOutOfBoundsException if {@code off} or {@code len} is
negative or if {@code off + len} is greater than the length of
the {@code bytes} array.
Writes the given data to this buffer .