core: Provide functions for different byte orders

Rationale: see #1586.

I thought if there's an ifdef anyway we could find a solution for vintage-lovers, too.