MCPcopy Create free account
hub / github.com/acl-dev/acl / write

Method write

lib_acl_cpp/src/stream/ostream.cpp:8–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace acl {
7
8int ostream::write(const void* data, size_t size, bool loop /* = true */,
9 bool buffed /* = false */)
10{
11 int ret;
12 if (loop) {
13 if (buffed) {
14 ret = acl_vstream_buffed_writen(stream_, data, size);
15 } else {
16 ret = acl_vstream_writen(stream_, data, size);
17 }
18 } else {
19 ret = acl_vstream_write(stream_, data, (int) size);
20 }
21
22 if (ret == ACL_VSTREAM_EOF) {
23 eof_ = true;
24 }
25 return ret;
26}
27
28int ostream::sendto(const void* data, size_t len, const char* dest_addr, int flags)
29{

Callers 15

doServiceMethod · 0.45
do_echoFunction · 0.45
http_testFunction · 0.45
mainFunction · 0.45
client_echoFunction · 0.45
fiber_mainFunction · 0.45
client_echoFunction · 0.45
server_pool2_runFunction · 0.45
server_pool_runFunction · 0.45
client_echoFunction · 0.45
mainFunction · 0.45
read_callbackMethod · 0.45

Calls 6

acl_vstream_writenFunction · 0.85
acl_vstream_writeFunction · 0.85
writeFunction · 0.50
c_strMethod · 0.45
lengthMethod · 0.45

Tested by 2

echoMethod · 0.36
test_unzip_fileFunction · 0.36