MCPcopy Create free account
hub / github.com/apache/impala / TryMemCopy

Function TryMemCopy

be/src/runtime/tuple-ir.cc:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template<class T>
53bool 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
59bool Tuple::TryDeepCopy(uint8_t** dst_start, const uint8_t* dst_end, int* offset_start,
60 const TupleDescriptor& desc, bool convert_ptrs) const {

Callers 3

TryDeepCopyMethod · 0.85
TryDeepCopyStringsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected