the code uses memcpy which will handle alignment if required. copyswap in the object and swapped path also handles it.