Home
last modified time | relevance | path

Searched refs:rafEntity (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_randomaccessfile/
H A Drandomaccessfile_n_exporter.cpp36 if (!rafEntity) { in GetRAFEntity()
39 return { true, rafEntity }; in GetRAFEntity()
122 rafEntity->filePointer = fp; in SetFilePointerSync()
165 rafEntity->filePointer = offset + actLen; in ReadSync()
198 if (!rafEntity || !rafEntity->fd.get()) { in ReadExec()
242 return ReadExec(env, funcArg, rafEntity); in Read()
304 …auto cbExec = [env, arg, buf, len, fd = rafEntity->fd.get()->GetFD(), offset, rafEntity]() -> NErr… in WriteExec()
305 if (!rafEntity || !rafEntity->fd.get()) { in WriteExec()
409 if (rafEntity == nullptr) { in Constructor()
427 rafEntity->fd.get()->GetFD()); in CreateStream()
[all …]
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_file/
H A Dfile_n_exporter.cpp39 auto rafEntity = NClass::GetEntityOf<FileEntity>(env, raf_entity); in GetFileEntity() local
40 if (!rafEntity) { in GetFileEntity()
44 if (!rafEntity->fd_) { in GetFileEntity()
48 return rafEntity; in GetFileEntity()
58 auto rafEntity = GetFileEntity(env, funcArg.GetThisVar()); in GetFD() local
59 if (!rafEntity) { in GetFD()
62 return NVal::CreateInt32(env, rafEntity->fd_.get()->GetFD()).val_; in GetFD()
73 auto rafEntity = make_unique<FileEntity>(); in Constructor() local
74 if (!NClass::SetEntityFor<FileEntity>(env, funcArg.GetThisVar(), move(rafEntity))) { in Constructor()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_file/
H A Dfile_n_exporter.cpp42 auto rafEntity = NClass::GetEntityOf<FileEntity>(env, raf_entity); in GetFileEntity() local
43 if (!rafEntity) { in GetFileEntity()
48 if (!rafEntity->fd_) { in GetFileEntity()
53 return rafEntity; in GetFileEntity()
64 auto rafEntity = GetFileEntity(env, funcArg.GetThisVar()); in GetFD() local
65 if (!rafEntity) { in GetFD()
69 return NVal::CreateInt32(env, rafEntity->fd_.get()->GetFD()).val_; in GetFD()
319 auto rafEntity = CreateUniquePtr<FileEntity>(); in Constructor() local
320 if (rafEntity == nullptr) { in Constructor()
325 if (!NClass::SetEntityFor<FileEntity>(env, funcArg.GetThisVar(), move(rafEntity))) { in Constructor()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dcreate_randomaccessfile.cpp153 auto rafEntity = NClass::GetEntityOf<RandomAccessFileEntity>(env, objRAF); in InstantiateRandomAccessFile() local
154 if (!rafEntity) { in InstantiateRandomAccessFile()
162 rafEntity->fd.swap(fdg); in InstantiateRandomAccessFile()
163 rafEntity->filePointer = ops.fp; in InstantiateRandomAccessFile()
164 rafEntity->start = ops.start; in InstantiateRandomAccessFile()
165 rafEntity->end = ops.end; in InstantiateRandomAccessFile()