Copies 'size' entries from 'indices' into a newly allocated buffer.
| 362 | |
| 363 | /// Copies 'size' entries from 'indices' into a newly allocated buffer. |
| 364 | BufferPtr copyIndicesBuffer( |
| 365 | const vector_size_t* indices, |
| 366 | vector_size_t size, |
| 367 | memory::MemoryPool* pool) { |
| 368 | BufferPtr copy = AlignedBuffer::allocate<vector_size_t>(size, pool); |
| 369 | memcpy( |
| 370 | copy->asMutable<vector_size_t>(), |
| 371 | indices, |
| 372 | BaseVector::byteSize<vector_size_t>(size)); |
| 373 | return copy; |
| 374 | } |
| 375 | |
| 376 | /// Copies 'size' bits from 'nulls' into a newly allocated buffer. Returns |
| 377 | /// nullptr if 'nulls' is null. |
no test coverage detected