Lines Matching refs:buf
65 uint8_t *buf = ctxIO->bufIO; in OnFileIO() local
72 if (!thisClass->callbackRead(thisClass->callerContext, buf, req->result)) { in OnFileIO()
83 char buf[bufSize] = { 0 }; in OnFileIO() local
84 uv_strerror_r((int)req->result, buf, bufSize); in OnFileIO()
85 WRITE_LOG(LOG_DEBUG, "OnFileIO fd:%d failed:%s", thisClass->fdIO, buf); in OnFileIO()
93 delete[] buf; in OnFileIO()
108 auto buf = new uint8_t[readMax](); in LoopRead() local
109 if (!contextIO || !buf) { in LoopRead()
113 if (buf) { in LoopRead()
114 delete[] buf; in LoopRead()
121 contextIO->bufIO = buf; in LoopRead()
125 iov = uv_buf_init((char *)buf, readMax); in LoopRead()
147 auto buf = new uint8_t[size]; in Write() local
148 if (!buf) { in Write()
151 (void)memcpy_s(buf, size, data, size); in Write()
152 return WriteWithMem(buf, size); in Write()