| 1583 | } |
| 1584 | |
| 1585 | FORCE_INLINE |
| 1586 | const char* convert_toDOUBLE_be(int64_t context, double value, int32_t* out_len) { |
| 1587 | // The function behaves like convert_toDOUBLE, but always return the result |
| 1588 | // in big endian format |
| 1589 | char* ret = const_cast<char*>(convert_toDOUBLE(context, value, out_len)); |
| 1590 | |
| 1591 | #if ARROW_LITTLE_ENDIAN |
| 1592 | reverse_char_buf(ret, *out_len); |
| 1593 | #endif |
| 1594 | |
| 1595 | return ret; |
| 1596 | } |
| 1597 | |
| 1598 | // Converts a float variable to binary |
| 1599 | FORCE_INLINE |