Home
last modified time | relevance | path

Searched refs:statSrc (Results 1 - 7 of 7) sorted by relevance

/foundation/multimedia/media_library/frameworks/native/c_api/
H A Dmedia_asset_change_request_impl.cpp533 struct stat statSrc {}; in SendFile() struct
534 int32_t status = fstat(srcFd.Get(), &statSrc); in SendFile()
538 off_t fileSize = statSrc.st_size; in SendFile()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp499 struct stat64 statSrc {}; in SendLivePhoto() struct
501 CHECK_AND_RETURN_RET_LOG(fstat64(livePhotoFd.Get(), &statSrc) == 0, E_HAS_FS_ERROR, in SendLivePhoto()
503 off_t totalSize = statSrc.st_size; in SendLivePhoto()
/foundation/multimedia/media_library/frameworks/native/media_library_asset_manager/src/
H A Dmedia_asset_manager_impl.cpp787 struct stat statSrc; in WriteFileToPath() local
788 if (fstat(srcFd, &statSrc) != E_SUCCESS) { in WriteFileToPath()
799 if (sendfile(destFd, srcFd, nullptr, statSrc.st_size) == -1) { in WriteFileToPath()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dmedia_asset_manager_napi.cpp1591 struct stat statSrc; in WriteDataToDestPath() local
1592 if (fstat(srcFd, &statSrc) == -1) { in WriteDataToDestPath()
1610 statSrc.st_size, requestId); in WriteDataToDestPath()
1612 SendFile(writeData.env, srcFd, destFd, resultNapiValue, statSrc.st_size); in WriteDataToDestPath()
H A Dmedia_asset_change_request_napi.cpp1651 struct stat statSrc {}; in SendFile() struct
1652 int32_t status = fstat(srcFd.Get(), &statSrc); in SendFile()
1659 off_t fileSize = statSrc.st_size; in SendFile()
H A Dmedia_library_napi.cpp4393 struct stat statSrc; in JSGetStoreMediaAssetExecute() local
4394 if (fstat(srcFd, &statSrc) == -1) { in JSGetStoreMediaAssetExecute()
4419 if (sendfile(destFd, srcFd, nullptr, statSrc.st_size) == -1) { in JSGetStoreMediaAssetExecute()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_object_utils.cpp1480 struct stat statSrc; in CopyAssetByFd() local
1481 if (fstat(srcFd, &statSrc) == -1) { in CopyAssetByFd()
1487 if (sendfile(destFd, srcFd, nullptr, statSrc.st_size) == -1) { in CopyAssetByFd()

Completed in 30 milliseconds