| 649 | |
| 650 | template <typename DType> |
| 651 | void DictEncoderImpl<DType>::WriteDict(uint8_t* buffer) const { |
| 652 | // For primitive types, only a memcpy |
| 653 | DCHECK_EQ(static_cast<size_t>(dict_encoded_size_), sizeof(T) * memo_table_.size()); |
| 654 | memo_table_.CopyValues(0 /* start_pos */, reinterpret_cast<T*>(buffer)); |
| 655 | } |
| 656 | |
| 657 | // ByteArray and FLBA already have the dictionary encoded in their data heaps |
| 658 | template <> |