'Copies the data directly from one file/buffer to the new file.
For now this is handled by loading the raw data from the existing data
(including any padding) via a memory map or from an already in-memory
buffer and using Numpy\'s existing file-writing facilities to write to
the new file.
If this proves too slow a more direct approach may be used.'

def _writedata_direct_copy(self, fileobj):

    raw = self._get_raw_data(self._data_size, 'ubyte', self._data_offset)
    if (raw is not None):
        fileobj.writearray(raw)
        return raw.nbytes
    else:
        return 0
