| 1647 | } |
| 1648 | |
| 1649 | FORCE_INLINE |
| 1650 | const char* convert_toBIGINT_be(int64_t context, int64_t value, int32_t* out_len) { |
| 1651 | // The function behaves like convert_toBIGINT, but always return the result |
| 1652 | // in big endian format |
| 1653 | char* ret = const_cast<char*>(convert_toBIGINT(context, value, out_len)); |
| 1654 | |
| 1655 | #if ARROW_LITTLE_ENDIAN |
| 1656 | reverse_char_buf(ret, *out_len); |
| 1657 | #endif |
| 1658 | |
| 1659 | return ret; |
| 1660 | } |
| 1661 | |
| 1662 | // Converts an integer(with 32 bits) variable to binary |
| 1663 | FORCE_INLINE |