MCPcopy Create free account
hub / github.com/apache/cloudberry / Get

Method Get

gpcontrib/gpcloud/src/s3utils.cpp:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125const char *MD5Calc::Get() {
126 MD5_Final(this->md5, &c);
127 std::stringstream ss;
128 for (int i = 0; i < MD5_DIGEST_LENGTH; i++)
129 ss << std::hex << std::setw(2) << std::setfill('0') << (int)this->md5[i];
130 this->result = ss.str();
131
132 // Reset MD5 context
133 memset(this->md5, 0, MD5_DIGEST_STRING_LENGTH);
134 MD5_Init(&this->c);
135 return this->result.c_str();
136}
137
138#if defined(__clang__)
139#pragma clang diagnostic pop

Callers 5

TESTFunction · 0.45
TESTFunction · 0.45
mockGetMethod · 0.45
SignRequestV4Function · 0.45
InitConfigFunction · 0.45

Calls 2

ini_getFunction · 0.85
strMethod · 0.45

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
mockGetMethod · 0.36