/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file_reader_io.cpp | 53 ssize_t nread = 0; in ReadBuffer() local 55 nread = pread(fd_, dst, remainSize, startPos); in ReadBuffer() 56 if (nread <= 0) { in ReadBuffer() 59 startPos += (size_t)nread; in ReadBuffer() 60 dst += nread; in ReadBuffer() 61 if (remainSize > nread) { in ReadBuffer() 62 remainSize -= (size_t)nread; in ReadBuffer()
|
/foundation/arkui/napi/sample/native_module_netserver/ |
H A D | net_server.cpp | 153 void NetServer::TakeDiffactionsByStatus(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf, NetServer* that) in TakeDiffactionsByStatus() argument 157 if (nread < 0) { in TakeDiffactionsByStatus() 170 for (int i = 0; i < nread; i++) { in TakeDiffactionsByStatus() 174 if (i + 1 < nread && buf->base[i + 1] == 'S') { in TakeDiffactionsByStatus() 194 wr->buf = uv_buf_init(buf->base, nread); in TakeDiffactionsByStatus() 201 void NetServer::AfterRead(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf) in AfterRead() argument 214 if (nread == 0) { in AfterRead() 219 TakeDiffactionsByStatus(handle, nread, buf, that); in AfterRead()
|
H A D | netserver.cpp | 152 void NetServer::TakeDiffactionsByStatus(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf, NetServer* that) in TakeDiffactionsByStatus() argument 156 if (nread < 0) { in TakeDiffactionsByStatus() 169 for (int i = 0; i < nread; i++) { in TakeDiffactionsByStatus() 173 if (i + 1 < nread && buf->base[i + 1] == 'S') { in TakeDiffactionsByStatus() 193 wr->buf = uv_buf_init(buf->base, nread); in TakeDiffactionsByStatus() 200 void NetServer::AfterRead(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf) in AfterRead() argument 213 if (nread == 0) { in AfterRead() 218 TakeDiffactionsByStatus(handle, nread, buf, that); in AfterRead()
|
H A D | net_server.h | 63 static void AfterRead(uv_stream_t*, ssize_t nread, const uv_buf_t* buf); 64 static void TakeDiffactionsByStatus(uv_stream_t* handle, ssize_t nread,
|
H A D | netserver.h | 104 static void AfterRead(uv_stream_t*, ssize_t nread, const uv_buf_t* buf); 105 static void TakeDiffactionsByStatus(uv_stream_t* handle, ssize_t nread,
|
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/local/src/ |
H A D | cast_local_file_channel_server.cpp | 375 int nread = 0; in ReadFileDataByFd() local 377 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd() 378 while (total < sendLen && nread > 0) { in ReadFileDataByFd() 379 total += nread; in ReadFileDataByFd() 380 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd()
|
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/local/src/ |
H A D | cast_local_file_channel_server.cpp | 364 int nread = 0; in ReadFileDataByFd() local 366 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd() 367 while (total < sendLen && nread > 0) { in ReadFileDataByFd() 368 total += nread; in ReadFileDataByFd() 369 nread = read(fd, buffer + total, sendLen - total); in ReadFileDataByFd()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | traffic_manager.cpp | 87 int nread = read(fd, buf, sizeof(long)); in GetInterfaceTrafficByType() local 88 if (nread == -1) { in GetInterfaceTrafficByType()
|
H A D | interface_manager.cpp | 102 int nread = read(fd, originMtuValue, (sizeof(char) * (MAX_MTU_LEN - 1))); in GetMtu() local 103 if (nread == -1 || nread == 0) { in GetMtu()
|
/foundation/communication/dsoftbus/tests/adapter/unittest/ |
H A D | softbus_socket_test.cpp | 1395 int32_t nread = 0; in HWTEST_F() local 1398 int32_t ret = SoftBusSocketIoctl(socketFd, cmd, &nread); in HWTEST_F() 1410 int32_t nread; in HWTEST_F() local 1416 ret = SoftBusSocketIoctl(socketFd, cmd, &nread); in HWTEST_F()
|