MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetResultBuffer

Method SetResultBuffer

tensorflow/core/platform/cloud/curl_http_request.cc:295–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void CurlHttpRequest::SetResultBuffer(std::vector<char>* out_buffer) {
296 CheckNotSent();
297 CHECK(out_buffer != nullptr);
298
299 out_buffer->clear();
300 response_buffer_ = out_buffer;
301
302 CHECK_CURL_OK(libcurl_->curl_easy_setopt(curl_, CURLOPT_WRITEDATA,
303 reinterpret_cast<void*>(this)));
304 CHECK_CURL_OK(libcurl_->curl_easy_setopt(curl_, CURLOPT_WRITEFUNCTION,
305 &CurlHttpRequest::WriteCallback));
306}
307
308void CurlHttpRequest::SetResultBufferDirect(char* buffer, size_t size) {
309 CHECK(buffer != nullptr);

Callers 11

ReadRowMethod · 0.45
ReadSchemaMethod · 0.45
UncachedStatForObjectMethod · 0.45
GetBucketMetadataMethod · 0.45
GetChildrenBoundedMethod · 0.45
RenameObjectMethod · 0.45
GetMetadataMethod · 0.45
TESTFunction · 0.45

Calls 2

clearMethod · 0.45
curl_easy_setoptMethod · 0.45

Tested by 1

TESTFunction · 0.36