| 106 | namespace detail { |
| 107 | |
| 108 | inline uint64_t ReadLittleEndianWord(const uint8_t* buffer, int bytes_remaining) { |
| 109 | uint64_t le_value = 0; |
| 110 | if (ARROW_PREDICT_TRUE(bytes_remaining >= 8)) { |
| 111 | memcpy(&le_value, buffer, 8); |
| 112 | } else { |
| 113 | memcpy(&le_value, buffer, bytes_remaining); |
| 114 | } |
| 115 | return arrow::bit_util::FromLittleEndian(le_value); |
| 116 | } |
| 117 | |
| 118 | } // namespace detail |
| 119 |
no test coverage detected