static ByteOrder mapByteOrder(final ByteOrderCodec byteOrder)
    {
        switch (byteOrder)
        {
            case SBE_BIG_ENDIAN:
                return ByteOrder.BIG_ENDIAN;

            default:
            case SBE_LITTLE_ENDIAN:
            case NULL_VAL:
                return ByteOrder.LITTLE_ENDIAN;
        }
    }
Utility functions for working with {@link Ir}.
sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/IrUtil.java