The standard library has a solution
No, it's not
i've got QByteArray value that is 2a000000 but has to be 0000002a
and when i do std::reverse(arr.begin(), arr.end());
it becomes 000000a2 that even doesn't make sense