MCPcopy Create free account
hub / github.com/apache/arrow / ReadLittleEndianWord

Function ReadLittleEndianWord

cpp/src/arrow/util/bit_stream_utils_internal.h:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106namespace detail {
107
108inline 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

Callers 4

ResetMethod · 0.85
GetAlignedMethod · 0.85
AdvanceMethod · 0.85
AdvanceBytesMethod · 0.85

Calls 1

FromLittleEndianFunction · 0.70

Tested by

no test coverage detected