| 51 | |
| 52 | template<class T> |
| 53 | bool TryMemCopy(uint8_t* dst, const uint8_t* dst_end, int size, const T* src) { |
| 54 | if (UNLIKELY(dst + size > dst_end)) return false; |
| 55 | memcpy(dst, src, size); |
| 56 | return true; |
| 57 | } |
| 58 | |
| 59 | bool Tuple::TryDeepCopy(uint8_t** dst_start, const uint8_t* dst_end, int* offset_start, |
| 60 | const TupleDescriptor& desc, bool convert_ptrs) const { |
no outgoing calls
no test coverage detected