Home
last modified time | relevance | path

Searched refs:readBytes (Results 1 - 15 of 15) sorted by relevance

/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnetlink_socket_diag.cpp181 ssize_t readBytes = read(dumpSock_, buf, sizeof(buf)); in ProcessSockDiagDumpResponse() local
182 if (readBytes < 0) { in ProcessSockDiagDumpResponse()
186 while (readBytes > 0) { in ProcessSockDiagDumpResponse()
187 uint32_t len = static_cast<uint32_t>(readBytes); in ProcessSockDiagDumpResponse()
201 readBytes = read(dumpSock_, buf, sizeof(buf)); in ProcessSockDiagDumpResponse()
202 if (readBytes < 0) { in ProcessSockDiagDumpResponse()
322 ssize_t readBytes = read(dumpSock_, buf, sizeof(buf)); in ProcessSockDiagUidDumpResponse() local
323 if (readBytes < 0) { in ProcessSockDiagUidDumpResponse()
326 while (readBytes > 0) { in ProcessSockDiagUidDumpResponse()
327 int len = readBytes; in ProcessSockDiagUidDumpResponse()
[all...]
/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Dsoftbus_file_test.cpp102 uint64_t readBytes = 4; in HWTEST_F() local
107 ret = SoftBusPreadFile(fd, NULL, readBytes, offset); in HWTEST_F()
109 ret = SoftBusPreadFile(fd, &value, readBytes, offset); in HWTEST_F()
111 ret = SoftBusPwriteFile(fd, NULL, readBytes, offset); in HWTEST_F()
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/local/src/
H A Dlocal_data_source.cpp140 int32_t readBytes = static_cast<int32_t>(cache->Read(data, length, pos)); in ReadBuffer() local
143 return readBytes; in ReadBuffer()
294 int64_t readBytes = length > (endPos_ - pos) ? (endPos_ - pos) : length; in Read() local
295 errno_t ret = memcpy_s(data, readBytes, buffer_.get() + (pos - startPos_), readBytes); in Read()
297 CLOGE("memcpy failed ret:%{public}d readBytes:%{public}" PRId64 " pos:%{public}" PRId64 in Read()
299 ret, readBytes, pos, startPos_); in Read()
304 return readBytes; in Read()
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/local/src/
H A Dlocal_data_source.cpp139 int32_t readBytes = static_cast<int32_t>(cache->Read(data, length, pos)); in ReadBuffer() local
142 return readBytes; in ReadBuffer()
293 int64_t readBytes = length > (endPos_ - pos) ? (endPos_ - pos) : length; in Read() local
294 errno_t ret = memcpy_s(data, readBytes, buffer_.get() + (pos - startPos_), readBytes); in Read()
296 CLOGE("memcpy failed ret:%{public}d readBytes:%{public}" PRId64 " pos:%{public}" PRId64 in Read()
298 ret, readBytes, pos, startPos_); in Read()
303 return readBytes; in Read()
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dzip_file.cpp413 size_t readBytes; in UnzipWithStore() local
415 readBytes = fread(&(readBuffer[0]), sizeof(Byte), readLen, file_); in UnzipWithStore()
416 if (readBytes == 0) { in UnzipWithStore()
420 remainSize -= readBytes; in UnzipWithStore()
421 dest.write(&(readBuffer[0]), readBytes); in UnzipWithStore()
461 size_t readBytes; in ReadZStream() local
463 readBytes = fread(buffer, sizeof(Byte), remainBytes, file_); in ReadZStream()
464 if (readBytes == 0) { in ReadZStream()
469 remainCompressedSize -= readBytes; in ReadZStream()
470 zstream.avail_in = readBytes; in ReadZStream()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dzip_file.cpp430 size_t readBytes; in UnzipWithStore() local
432 readBytes = fread(&(readBuffer[0]), sizeof(Byte), readLen, file_); in UnzipWithStore()
433 if (readBytes == 0) { in UnzipWithStore()
437 remainSize -= readBytes; in UnzipWithStore()
438 dest.write(&(readBuffer[0]), readBytes); in UnzipWithStore()
478 size_t readBytes; in ReadZStream() local
480 readBytes = fread(buffer, sizeof(Byte), remainBytes, file_); in ReadZStream()
481 if (readBytes == 0) { in ReadZStream()
486 remainCompressedSize -= readBytes; in ReadZStream()
487 zstream.avail_in = readBytes; in ReadZStream()
[all...]
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_file.c126 int64_t SoftBusPreadFile(int32_t fd, void *buf, uint64_t readBytes, uint64_t offset) in SoftBusPreadFile() argument
130 (void)readBytes; in SoftBusPreadFile()
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_file.h55 int64_t SoftBusPreadFile(int32_t fd, void *buf, uint64_t readBytes, uint64_t offset);
/foundation/multimedia/media_library/frameworks/native/c_api/
H A Dmoving_photo_impl.cpp307 size_t readBytes = static_cast<size_t>(read(uniqueFd.Get(), arrayBufferData_, fileSize)); in RequestContentToArrayBuffer() local
308 if (readBytes != fileSize) { in RequestContentToArrayBuffer()
310 readBytes, fileSize, errno); in RequestContentToArrayBuffer()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dhighlight_album_napi.cpp334 ssize_t readBytes = read(uniqueFd.Get(), arrayBufferData, fileLen); in JSGetHighlightResourceExecute() local
335 if (readBytes != fileLen) { in JSGetHighlightResourceExecute()
337 ",error: %{public}d", readBytes, fileLen, errno); in JSGetHighlightResourceExecute()
H A Dmoving_photo_napi.cpp320 size_t readBytes = static_cast<size_t>(read(uniqueFd.Get(), context->arrayBufferData, fileSize)); in RequestContentToArrayBuffer() local
321 if (readBytes != fileSize) { in RequestContentToArrayBuffer()
323 "error: %{public}d", readBytes, fileSize, errno); in RequestContentToArrayBuffer()
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/
H A Davcodec_audio_encoder_inner_demo.cpp168 int readBytes = inputFile.gcount(); in InputFunc() local
171 if (inputFile.eof() || readBytes == 0) { in InputFunc()
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_file.c223 int64_t SoftBusPreadFile(int32_t fd, void *buf, uint64_t readBytes, uint64_t offset) in SoftBusPreadFile() argument
229 int64_t len = pread(fd, buf, readBytes, offset); in SoftBusPreadFile()
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dzip_file.cpp873 size_t readBytes = sizeof(Byte) * remainBytes; in ReadZStreamFromMMap() local
874 if (memcpy_s(buffer, readBytes, srcDataPtr, readBytes) != EOK) { in ReadZStreamFromMMap()
878 srcDataPtr += readBytes; in ReadZStreamFromMMap()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_util.cpp78 size_t readBytes = 0u; in Read() local
81 readBytes = accessor.count * elementSize; in Read()
83 readBytes = (accessor.count - 1) * byteStride + elementSize; in Read()
86 if (bufferRemaining < readBytes) { in Read()

Completed in 12 milliseconds