| 248 | |
| 249 | template <typename T> |
| 250 | inline 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 | |
| 258 | template <typename T> |
| 259 | inline bool BitReader::GetValue(int num_bits, T* v) { |
no test coverage detected