public void put(ByteBuffer src,int length){
  while (length > 0) {
    ByteBuffer dst=getWriteChunk();
    int n=Math.min(dst.remaining(),length);
    copy(src,dst,n);
    length-=n;
  }
}

public void put ( ByteBuffer src , int length ) { while ( length > 0 ) { ByteBuffer dst = getWriteChunk ( ) ; int n = Math . min ( dst . remaining ( ) , length ) ; copy ( src , dst , n ) ; length -= n ; } }
write remaining bytes of src
