Lines Matching refs:buf
62 uint8_t *buf = ctxIO->bufIO; in FileIOOnThread() local
79 nBytes = write(thisClass->fdIO, buf, bufSize); in FileIOOnThread()
86 if (memset_s(buf, bufSize, 0, bufSize) != EOK) { in FileIOOnThread()
99 nBytes = read(thisClass->fdIO, buf, bufSize); in FileIOOnThread()
108 … } else if (!isWrite && !thisClass->callbackRead(thisClass->callerContext, buf, nBytes)) { in FileIOOnThread()
130 if (buf != nullptr) { in FileIOOnThread()
131 delete[] buf; in FileIOOnThread()
132 buf = nullptr; in FileIOOnThread()
147 auto buf = new(std::nothrow) uint8_t[readMax](); in LoopReadOnThread() local
148 if (!contextIO || !buf) { in LoopReadOnThread()
152 if (buf) { in LoopReadOnThread()
153 delete[] buf; in LoopReadOnThread()
159 contextIO->bufIO = buf; in LoopReadOnThread()
183 auto buf = new(std::nothrow) uint8_t[size]; in Write() local
184 if (!buf) { in Write()
187 (void)memcpy_s(buf, size, data, size); in Write()
188 return WriteWithMem(buf, size); in Write()
259 uint8_t *buf = cfio->bufIO; in CtxFileIOWrite() local
260 uint8_t *data = buf; in CtxFileIOWrite()
276 delete[] buf; in CtxFileIOWrite()