| 201 | |
| 202 | template <typename DType> |
| 203 | void PlainEncoder<DType>::Put(const T* buffer, int num_values) { |
| 204 | if (num_values > 0) { |
| 205 | PARQUET_THROW_NOT_OK(sink_.Append(buffer, num_values * sizeof(T))); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | template <> |
| 210 | inline void PlainEncoder<ByteArrayType>::Put(const ByteArray* src, int num_values) { |