Use destination partition header size as base for metadata calculations instead of source partition.
Updated doxygen docs with latest functionality.