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

Method CopyFrom

be/src/udf/udf.cc:541–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541StringVal StringVal::CopyFrom(FunctionContext* ctx, const uint8_t* buf, size_t len) noexcept {
542 StringVal result;
543 AllocateStringValWithLenCheck(ctx, len, &result);
544 if (LIKELY(!result.is_null)) {
545 std::copy(buf, buf + len, result.ptr);
546 }
547 return result;
548}
549
550bool StringVal::Resize(FunctionContext* ctx, int new_len) noexcept {
551 if (new_len <= len) {

Callers 2

TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36