| 84 | } |
| 85 | |
| 86 | Tuple* Tuple::DeepCopy(const TupleDescriptor& desc, MemPool* pool) const { |
| 87 | Tuple* result = reinterpret_cast<Tuple*>(pool->Allocate(desc.byte_size())); |
| 88 | DeepCopy(result, desc, pool); |
| 89 | return result; |
| 90 | } |
| 91 | |
| 92 | // TODO: the logic is very similar to the other DeepCopy implementation aside from how |
| 93 | // memory is allocated - can we templatise it somehow to avoid redundancy without runtime |
no test coverage detected