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

Method PutAligned

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

Source from the content-addressed store, hash-verified

248
249template <typename T>
250inline bool BitWriter::PutAligned(T val, int num_bytes) {
251 uint8_t* ptr = GetNextBytePtr(num_bytes);
252 if (ptr == NULL) return false;
253 val = arrow::bit_util::ToLittleEndian(val);
254 memcpy(ptr, &val, num_bytes);
255 return true;
256}
257
258template <typename T>
259inline bool BitReader::GetValue(int num_bits, T* v) {

Callers 1

FlushRepeatedRunMethod · 0.80

Calls 1

ToLittleEndianFunction · 0.70

Tested by

no test coverage detected