| 1679 | } |
| 1680 | |
| 1681 | FORCE_INLINE |
| 1682 | const char* convert_toINT_be(int64_t context, int32_t value, int32_t* out_len) { |
| 1683 | // The function behaves like convert_toINT, but always return the result |
| 1684 | // in big endian format |
| 1685 | char* ret = const_cast<char*>(convert_toINT(context, value, out_len)); |
| 1686 | |
| 1687 | #if ARROW_LITTLE_ENDIAN |
| 1688 | reverse_char_buf(ret, *out_len); |
| 1689 | #endif |
| 1690 | |
| 1691 | return ret; |
| 1692 | } |
| 1693 | |
| 1694 | // Converts a boolean variable to binary |
| 1695 | FORCE_INLINE |
no test coverage detected