MCPcopy Create free account
hub / github.com/defold/defold / Write

Function Write

engine/dlib/src/dlib/http_client.cpp:560–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558 }
559
560 Result Write(HResponse response, const void* buffer, uint32_t buffer_size)
561 {
562 HClient client = response->m_Client;
563 if (client->m_SocketResult != dmSocket::RESULT_OK) {
564 return RESULT_SOCKET_ERROR;
565 }
566 dmSocket::Result sock_res = SendAll(response, (const char*) buffer, buffer_size);
567 if (sock_res != dmSocket::RESULT_OK)
568 {
569 client->m_SocketResult = sock_res;
570 return RESULT_SOCKET_ERROR;
571 }
572
573 return RESULT_OK;
574 }
575
576 Result WriteHeader(HResponse response, const char* name, const char* value)
577 {

Callers 8

HttpWriteFunction · 0.85
WriteVarInt32Method · 0.85
WriteVarInt64Method · 0.85
WriteFixed32Method · 0.85
WriteFixed64Method · 0.85
WriteStringMethod · 0.85
VerifyCallbackFunction · 0.85
HttpWriteMethod · 0.85

Calls 1

SendAllFunction · 0.70

Tested by 1

HttpWriteMethod · 0.68