public void add(ByteBuffer buf,int len){
  requestFreeSize(len);
  buf.get(data,size,len);
  size+=len;
}

public void add ( ByteBuffer buf , int len ) { requestFreeSize ( len ) ; buf . get ( data , size , len ) ; size += len ; }
adds data from byte buffer into array .
