cudaMemcpyToArray

Can anyone please explain how cudaMemcpyToArray works?

  1. does it copy to array filling paddings?
  2. does it copy to array including source paddings?
    thank you.