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 D | randomaccessfile_n_exporter.cpp | 36 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 D | file_n_exporter.cpp | 39 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 D | file_n_exporter.cpp | 42 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 D | create_randomaccessfile.cpp | 153 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()
|