static void copyFromArray(Object src,long srcBaseOffset,long srcPos,long dstAddr,long length){
  long offset=srcBaseOffset + srcPos;
  while (length > 0) {
    long size=(length > UNSAFE_COPY_THRESHOLD) ? UNSAFE_COPY_THRESHOLD : length;
    unsafe.copyMemory(src,offset,null,dstAddr,size);
    length-=size;
    offset+=size;
    dstAddr+=size;
  }
}

static void copyFromArray ( Object src , long srcBaseOffset , long srcPos , long dstAddr , long length ) { long offset = srcBaseOffset + srcPos ; while ( length > 0 ) { long size = ( length > UNSAFE_COPY_THRESHOLD ) ? UNSAFE_COPY_THRESHOLD : length ; unsafe . copyMemory ( src , offset , null , dstAddr , size ) ; length -= size ; offset += size ; dstAddr += size ; } }
copy from given source array to destination address .
