core: Provide functions for different byte orders

Rationale: see #1586.

I see. I'll check as soon I can access a computer with this toolchain installed again. But it's not a blocker anyway.