/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | lseek.cpp | 42 auto [resGetThirdArg, whence] = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in GetLseekArg() 48 return { true, fd, offset, whence }; in GetLseekArg() 59 auto [resGetLseekArg, fd, offset, whence] = GetLseekArg(env, funcArg); in Sync() 64 int ret = lseek(fd, offset, whence); in Sync() 81 auto [resGetLseekArg, fd, offset, whence] = GetLseekArg(env, funcArg); in Async() 87 auto cbExec = [fd = fd, offset = offset, whence = whence, arg](napi_env env) -> UniError { in Async() 88 int ret = lseek(fd, offset, whence); in Async()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/ts/streamrw/src/ |
H A D | streamrw.ts | 58 seek(offset: number, whence?: fileIo.WhenceType): number { 59 if (whence === undefined) { 62 this.offset = this.stream?.seek(offset, whence); 131 seek(offset: number, whence?: fileIo.WhenceType): number { 132 if (whence === undefined) { 135 this.offset = this.stream?.seek(offset, whence);
|
/ohos5.0/base/update/updater/services/package/pkg_manager/ |
H A D | pkg_stream.h | 57 virtual int32_t Seek(long int offset, int whence) = 0; 100 int32_t Seek(long int offset, int whence) override; 128 int32_t Seek(long int offset, int whence) override; 194 int32_t Seek(long int size, int whence) override in Seek() argument 197 UNUSED(whence); in Seek() 241 int32_t Seek(long int offset, int whence) override in Seek() argument 244 UNUSED(whence); in Seek()
|
H A D | pkg_stream.cpp | 160 int32_t FileStream::Seek(long int offset, int whence) in Seek() argument 166 return fseek(stream_, offset, whence); in Seek() 262 int32_t MemoryMapStream::Seek(long int offset, int whence) in Seek() argument 264 if (whence == SEEK_SET) { in Seek() 274 } else if (whence == SEEK_CUR) { in Seek()
|
/ohos5.0/base/security/dlp_permission_service/frameworks/test/mock/ |
H A D | file_io_mock.cpp | 26 typedef off_t (*LseekFuncT)(int fd, off_t offset, int whence); 31 off_t lseek(int fd, off_t offset, int whence) in lseek() argument 41 return (*func)(fd, offset, whence); in lseek()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | lseek.cpp | 51 SeekPos whence = SeekPos::START; in Sync() local 59 whence = static_cast<SeekPos>(pos); in Sync() 62 int64_t ret = ::Lseek(fd, offset, whence); in Sync()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_file.c | 114 off_t OsalFileLseek(OsalFile *file, off_t offset, int32_t whence) in OsalFileLseek() argument 123 ret = lseek((int32_t)(uintptr_t)file->realFile, offset, whence); in OsalFileLseek() 125 HDF_LOGE("%s lseek file fail %lld %d %d", __func__, offset, whence, errno); in OsalFileLseek()
|
H A D | osal_cdev.c | 85 static off_t OsalCdevSeek(struct file *filep, off_t offset, int whence) in OsalCdevSeek() argument 92 return dev->opsImpl->seek(filep, offset, whence); in OsalCdevSeek()
|
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/ |
H A D | system_function_mock.cpp | 35 off_t lseek(int fd, off_t offset, int whence) in lseek() argument 37 return Assistant::ins->lseek(fd, offset, whence); in lseek()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_file.c | 106 off_t OsalFileLseek(OsalFile *file, off_t offset, int32_t whence) in OsalFileLseek() argument 116 ret = vfs_llseek(fp, offset, whence); in OsalFileLseek() 118 HDF_LOGE("%s lseek file fail %ld %d", __func__, offset, whence); in OsalFileLseek()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | lseek.cpp | 37 SeekPos whence = static_cast<SeekPos>(pos); in Lseek() local 39 int64_t seekRet = ::Lseek(fd, offset, whence); in Lseek()
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/library_func_mock/ |
H A D | library_func_mock.cpp | 19 int fseeko(FILE *stream, off_t offset, int whence) in fseeko() argument 24 return LibraryFunc::libraryFunc_->fseeko(stream, offset, whence); in fseeko()
|
H A D | library_func_mock.h | 32 virtual int fseeko(FILE *stream, off_t offset, int whence) = 0; 42 MOCK_METHOD3(fseeko, int(FILE *stream, off_t offset, int whence));
|
/ohos5.0/commonlibrary/utils_lite/hals/file/ |
H A D | hal_file.c | 58 int HalFileSeek(int fd, int offset, unsigned int whence) in HalFileSeek() argument 60 return lseek(fd, offset, whence); in HalFileSeek()
|
H A D | hal_file.h | 37 int HalFileSeek(int fd, int offset, unsigned int whence);
|
/ohos5.0/base/global/resource_management/interfaces/native/resource/include/ |
H A D | raw_file.h | 145 int OH_ResourceManager_SeekRawFile(const RawFile *rawFile, long offset, int whence); 273 int OH_ResourceManager_SeekRawFile64(const RawFile64 *rawFile, int64_t offset, int whence);
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/ |
H A D | rawfile.md | 49 …ager_seekrawfile) (const [RawFile](#rawfile) \*rawFile, long offset, int whence) | 基于指定的偏移量,在rawfi… 57 …rawfile64) (const [RawFile64](#rawfile64) \*rawFile, int64_t offset, int whence) | 基于指定的偏移量,在较大的ra… 710 int OH_ResourceManager_SeekRawFile (const RawFile * rawFile, long offset, int whence ) 725 | whence | 读写位置,有以下场景:<br/>0: 读写位置为文件起始位置加上offset<br/>1: 读写位置为当前位置加上offset<br/>2: 读写位置为文件末尾加上offset… 735 int OH_ResourceManager_SeekRawFile64 (const RawFile64 * rawFile, int64_t offset, int whence ) 750 | whence | 读写位置,有以下场景:<br/>0: 读写位置为文件起始位置加上offset<br/>1: 读写位置为当前位置加上offset<br/>2: 读写位置为文件末尾加上offset…
|
H A D | raw__file_8h.md | 41 …awfile) (const [RawFile](rawfile.md#rawfile) \*rawFile, long offset, int whence) | 基于指定的偏移量,在rawfi… 49 … (const [RawFile64](rawfile.md#rawfile64) \*rawFile, int64_t offset, int whence) | 基于指定的偏移量,在较大的ra…
|
/ohos5.0/commonlibrary/utils_lite/file/src/file_impl_hal/ |
H A D | file.c | 56 int UtilsFileSeek(int fd, int offset, unsigned int whence) in UtilsFileSeek() argument 58 return HalFileSeek(fd, offset, whence); in UtilsFileSeek()
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/muxer/ |
H A D | data_sink_file.cpp | 70 int64_t DataSinkFile::Seek(int64_t offset, int whence) in Seek() argument 72 switch (whence) { in Seek()
|
H A D | data_sink_fd.cpp | 74 int64_t DataSinkFd::Seek(int64_t offset, int whence) in Seek() argument 76 switch (whence) { in Seek()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/muxer/ |
H A D | ffmpeg_muxer_plugin.cpp | 543 int64_t FFmpegMuxerPlugin::IoSeek(void* opaque, int64_t offset, int whence) in IoSeek() argument 547 switch (whence) { in IoSeek() 552 whence, offset, newPos); in IoSeek() 557 whence, offset, newPos); in IoSeek() 562 … MEDIA_LOG_I("AVSeek seek end whence: " PUBLIC_LOG_D32 ", pos = " PUBLIC_LOG_D64, whence, offset); in IoSeek() 565 MEDIA_LOG_E("AVSeek unexpected whence: " PUBLIC_LOG_D32, whence); in IoSeek() 568 if (whence != AVSEEK_SIZE) { in IoSeek()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/ffmpeg_adapter/demuxer/ |
H A D | ffmpeg_demuxer_plugin.cpp | 571 int64_t FFmpegDemuxerPlugin::AVSeek(void* opaque, int64_t offset, int whence) // NOLINT: void* in AVSeek() argument 575 switch (whence) { in AVSeek() 580 PRIu64, whence, offset, newPos); in AVSeek() 585 PRIu64, whence, offset, newPos); in AVSeek() 593 whence, offset); in AVSeek() 598 MEDIA_LOG_E("AVSeek unexpected whence: " PUBLIC_LOG_D32, whence); in AVSeek() 601 if (whence != AVSEEK_SIZE) { in AVSeek()
|
/ohos5.0/foundation/multimedia/av_codec/interfaces/plugin/ |
H A D | data_sink.h | 28 virtual int64_t Seek(int64_t offset, int whence) = 0;
|
/ohos5.0/drivers/hdf_core/framework/include/osal/ |
H A D | osal_file.h | 199 off_t OsalFileLseek(OsalFile *file, off_t offset, int32_t whence);
|