Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 25 of 72) sorted by relevance

123

/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
H A Dlseek.cpp42 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 Dstreamrw.ts58 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 Dpkg_stream.h57 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 Dpkg_stream.cpp160 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 Dfile_io_mock.cpp26 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 Dlseek.cpp51 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 Dosal_file.c114 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 Dosal_cdev.c85 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 Dsystem_function_mock.cpp35 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 Dosal_file.c106 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 Dlseek.cpp37 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 Dlibrary_func_mock.cpp19 int fseeko(FILE *stream, off_t offset, int whence) in fseeko() argument
24 return LibraryFunc::libraryFunc_->fseeko(stream, offset, whence); in fseeko()
H A Dlibrary_func_mock.h32 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 Dhal_file.c58 int HalFileSeek(int fd, int offset, unsigned int whence) in HalFileSeek() argument
60 return lseek(fd, offset, whence); in HalFileSeek()
H A Dhal_file.h37 int HalFileSeek(int fd, int offset, unsigned int whence);
/ohos5.0/base/global/resource_management/interfaces/native/resource/include/
H A Draw_file.h145 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 Drawfile.md49 …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 Draw__file_8h.md41 …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 Dfile.c56 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 Ddata_sink_file.cpp70 int64_t DataSinkFile::Seek(int64_t offset, int whence) in Seek() argument
72 switch (whence) { in Seek()
H A Ddata_sink_fd.cpp74 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 Dffmpeg_muxer_plugin.cpp543 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 Dffmpeg_demuxer_plugin.cpp571 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 Ddata_sink.h28 virtual int64_t Seek(int64_t offset, int whence) = 0;
/ohos5.0/drivers/hdf_core/framework/include/osal/
H A Dosal_file.h199 off_t OsalFileLseek(OsalFile *file, off_t offset, int32_t whence);

123