write the whole data
data to write
Write part of the data
the data to write (the source)
offset to start from
number of chars to write