/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_file.cc | 190 : file_(file), in FileGenerator() 200 for (int i = 0; i < file_->message_type_count(); ++i) { in FileGenerator() 202 generator_factory_->NewMessageGenerator(file_->message_type(i))); in FileGenerator() 204 for (int i = 0; i < file_->extension_count(); ++i) { in FileGenerator() 206 generator_factory_->NewExtensionGenerator(file_->extension(i))); in FileGenerator() 217 if (name_resolver_->HasConflictingClassName(file_, classname_, in Validate() 219 error->assign(file_->name()); in Validate() 234 file_, classname_, NameEquality::EQUAL_IGNORE_CASE)) { in Validate() 236 << file_->name() << ": The file's outer class name, \"" << classname_ in Validate() 245 if (file_->options().optimize_for() == FileOptions::LITE_RUNTIME && in Validate() [all …]
|
D | java_shared_code_generator.cc | 53 : name_resolver_(new ClassNameResolver), file_(file), options_(options) {} in SharedCodeGenerator() 60 std::string java_package = FileJavaPackage(file_); in Generate() 63 if (HasDescriptorMethods(file_, options_.enforce_lite)) { in Generate() 65 std::string classname = name_resolver_->GetDescriptorClassName(file_); in Generate() 81 "filename", file_->name()); in Generate() 96 printer->Annotate("classname", file_->name()); in Generate() 130 file_->CopyTo(&file_proto); in GenerateDescriptors() 163 for (int i = 0; i < file_->dependency_count(); i++) { in GenerateDescriptors() 164 std::string filename = file_->dependency(i)->name(); in GenerateDescriptors() 165 std::string package = FileJavaPackage(file_->dependency(i)); in GenerateDescriptors() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | file_input_stream.cc | 29 : file_(NULL), in FileInputStream() 47 if (file_) { in Close() 48 fclose(file_); in Close() 51 file_ = NULL; in Close() 65 if (!file_) { in Read() 71 if (feof(file_)) { in Read() 78 size_t length = fread(&value, 1, 1, file_); in Read() 89 if (!file_) { in Read() 95 if (feof(file_)) { in Read() 105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | file_input_stream.cc | 29 : file_(NULL), in FileInputStream() 47 if (file_) { in Close() 48 fclose(file_); in Close() 51 file_ = NULL; in Close() 65 if (!file_) { in Read() 71 if (feof(file_)) { in Read() 78 size_t length = fread(&value, 1, 1, file_); in Read() 89 if (!file_) { in Read() 95 if (feof(file_)) { in Read() 105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 2556 FileDescriptorProto file_; member in google::protobuf::compiler::__anonb024d4af0111::SourceInfoTest 2563 if (!parser_->Parse(input_.get(), &file_)) { in Parse() 2567 const SourceCodeInfo& source_info = file_.source_code_info(); in Parse() 2573 if (!FollowPath(file_, location.path().begin(), location.path().end(), in Parse() 2782 EXPECT_TRUE(HasSpan('a', 'q', file_)); in TEST_F() 2783 EXPECT_TRUE(HasSpan('b', 'c', file_, "package")); in TEST_F() 2784 EXPECT_TRUE(HasSpan('d', 'e', file_, "dependency", 0)); in TEST_F() 2785 EXPECT_TRUE(HasSpan('f', 'h', file_, "dependency", 1)); in TEST_F() 2786 EXPECT_TRUE(HasSpan('j', 'm', file_, "dependency", 2)); in TEST_F() 2787 EXPECT_TRUE(HasSpan('k', 'l', file_, "public_dependency", 0)); in TEST_F() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_reflection_class.cc | 57 file_(file) { in ReflectionClassGenerator() 74 if (file_->extension_count() > 0) { in Generate() 80 "file_name", file_->name()); in Generate() 82 for (int i = 0; i < file_->extension_count(); i++) { in Generate() 84 CreateFieldGenerator(file_->extension(i), -1, this->options())); in Generate() 94 if (file_->enum_type_count() > 0) { in Generate() 96 for (int i = 0; i < file_->enum_type_count(); i++) { in Generate() 97 EnumGenerator enumGenerator(file_->enum_type(i), this->options()); in Generate() 105 if (file_->message_type_count() > 0) { in Generate() 107 for (int i = 0; i < file_->message_type_count(); i++) { in Generate() [all …]
|
/third_party/gn/src/base/files/ |
D | file_win.cc | 24 return file_.IsValid(); in IsValid() 28 return file_.Get(); in GetPlatformFile() 32 return file_.Take(); in TakePlatformFile() 36 if (!file_.IsValid()) in Close() 39 file_.Close(); in Close() 48 if (!SetFilePointerEx(file_.Get(), distance, &res, move_method)) in Seek() 66 if (::ReadFile(file_.Get(), data, size, &bytes_read, &overlapped)) in Read() 80 if (::ReadFile(file_.Get(), data, size, &bytes_read, NULL)) in ReadAtCurrentPos() 109 if (::WriteFile(file_.Get(), data, size, &bytes_written, &overlapped)) in Write() 121 if (::WriteFile(file_.Get(), data, size, &bytes_written, NULL)) in WriteAtCurrentPos() [all …]
|
D | file_posix.cc | 122 return file_.is_valid(); in IsValid() 126 return file_.get(); in GetPlatformFile() 130 return file_.release(); in TakePlatformFile() 137 file_.reset(); in Close() 144 return lseek(file_.get(), static_cast<off_t>(offset), in Seek() 156 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, size - bytes_read, in Read() 175 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos() 187 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); in ReadNoBestEffort() 195 return HANDLE_EINTR(read(file_.get(), data, size)); in ReadAtCurrentPosNoBestEffort() 199 if (IsOpenAppend(file_.get())) in Write() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_file.cc | 96 : file_(file), options_(options), scc_analyzer_(options) { in FileGenerator() 100 variables_["tablename"] = UniqueName("TableStruct", file_, options_); in FileGenerator() 102 UniqueName("file_level_metadata", file_, options_); in FileGenerator() 103 variables_["desc_table"] = DescriptorTableName(file_, options_); in FileGenerator() 105 UniqueName("file_level_enum_descriptors", file_, options_); in FileGenerator() 107 UniqueName("file_level_service_descriptors", file_, options_); in FileGenerator() 108 variables_["filename"] = file_->name(); in FileGenerator() 109 variables_["package_ns"] = Namespace(file_, options); in FileGenerator() 129 if (HasGenericServices(file_, options_)) { in FileGenerator() 157 if (file_->name() != "net/proto2/compiler/proto/plugin.proto" && in GenerateMacroUndefs() [all …]
|
/third_party/ninja/src/ |
D | deps_log.cc | 52 assert(!file_); in OpenForWrite() 115 if (fwrite(&size, 4, 1, file_) < 1) in RecordDeps() 118 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps() 121 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps() 124 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps() 128 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps() 131 if (fflush(file_) != 0) in RecordDeps() 145 if (file_) in Close() 146 fclose(file_); in Close() 147 file_ = NULL; in Close() [all …]
|
/third_party/gn/src/gn/ |
D | location.cc | 16 : file_(file), line_number_(line_number), column_number_(column_number) {} in Location() 19 return (file_ == other.file_ && line_number_ == other.line_number_ && in operator ==() 28 DCHECK(file_ == other.file_); in operator <() 34 DCHECK(file_ == other.file_); in operator <=() 40 if (!file_) in Describe() 44 if (file_->friendly_name().empty()) in Describe() 45 ret = file_->name().value(); in Describe() 47 ret = file_->friendly_name(); in Describe()
|
/third_party/mindspore/mindspore/ccsrc/utils/system/ |
D | file_system.h | 123 explicit PosixWriteFile(const string &file_name) : WriteFile(file_name), file_(nullptr) {} in PosixWriteFile() 129 if (file_ != nullptr) { in ~PosixWriteFile() 130 (void)fclose(file_); in ~PosixWriteFile() 131 file_ = nullptr; in ~PosixWriteFile() 141 if (file_ != nullptr) { in Open() 155 file_ = fopen(path, "w+"); in Open() 156 if (file_ == nullptr) { in Open() 165 size_t r = fwrite(data.data(), 1, data.size(), file_); in Write() 174 if (file_ == nullptr) { in Close() 179 if (fclose(file_) != 0) { in Close() [all …]
|
D | file_system.cc | 178 if (file_ != nullptr) { in Open() 192 file_ = fopen(path, "w+"); in Open() 193 if (file_ == nullptr) { in Open() 202 size_t r = fwrite(data.data(), 1, data.size(), file_); in Write() 211 if (file_ == nullptr) { in Close() 216 if (fclose(file_) != 0) { in Close() 220 file_ = nullptr; in Close() 225 if (fflush(file_) != 0) { in Flush() 236 if (file_ != nullptr) { in ~WinWriteFile() 237 (void)fclose(file_); in ~WinWriteFile() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_file.cc | 189 : file_(file), in FileGenerator() 193 for (int i = 0; i < file_->enum_type_count(); i++) { in FileGenerator() 194 EnumGenerator *generator = new EnumGenerator(file_->enum_type(i)); in FileGenerator() 197 for (int i = 0; i < file_->message_type_count(); i++) { in FileGenerator() 199 new MessageGenerator(root_class_name_, file_->message_type(i), options_); in FileGenerator() 202 for (int i = 0; i < file_->extension_count(); i++) { in FileGenerator() 204 new ExtensionGenerator(root_class_name_, file_->extension(i)); in FileGenerator() 248 for (int i = 0; i < file_->public_dependency_count(); i++) { in GenerateHeader() 249 import_writer.AddFile(file_->public_dependency(i), header_extension); in GenerateHeader() 346 if (FileContainsEnums(file_)) { in GenerateSource() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 301 Generator::Generator() : file_(nullptr) {} in Generator() 337 file_ = file; in Generate() 349 file_->CopyTo(&fdp); in Generate() 358 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate() 396 for (int i = 0; i < file_->dependency_count(); ++i) { in PrintImports() 397 const std::string& filename = file_->dependency(i)->name(); in PrintImports() 424 CopyPublicDependenciesAliases(module_alias, file_->dependency(i)); in PrintImports() 429 for (int i = 0; i < file_->public_dependency_count(); ++i) { in PrintImports() 430 std::string module_name = ModuleName(file_->public_dependency(i)->name()); in PrintImports() 440 m["name"] = file_->name(); in PrintFileDescriptor() [all …]
|
/third_party/boost/boost/nowide/ |
D | filebuf.hpp | 69 buffer_size_(BUFSIZ), buffer_(0), file_(0), owns_buffer_(false), last_char_(), in basic_filebuf() 95 swap(file_, rhs.file_); in swap() 146 file_ = detail::wfopen(s, smode); in open() 147 if(!file_) in open() 149 if(ate && detail::fseek(file_, 0, SEEK_END) != 0) in open() 165 if(std::fclose(file_) != 0) in close() 167 file_ = NULL; in close() 182 return file_ != NULL; in is_open() 228 if(std::fwrite(pbase(), 1, n, file_) != n) in overflow() 244 } else if(std::fputc(c, file_) == EOF) in overflow() [all …]
|
/third_party/boost/boost/beast/http/ |
D | basic_file_body.hpp | 93 File file_; member in boost::beast::http::basic_file_body::value_type 117 return file_; in file() 124 return file_.is_open(); in is_open() 170 file_.close(ignored); in close() 180 file_.open(path, mode, ec); in open() 185 file_size_ = file_.size(ec); in open() 200 if(file_.is_open()) in reset() 203 file_.close(ignored); in reset() 207 file_ = std::move(file); in reset() 210 file_size_ = file_.size(ec); in reset() [all …]
|
/third_party/boost/libs/beast/include/boost/beast/http/ |
D | basic_file_body.hpp | 93 File file_; member in boost::beast::http::basic_file_body::value_type 117 return file_; in file() 124 return file_.is_open(); in is_open() 170 file_.close(ignored); in close() 180 file_.open(path, mode, ec); in open() 185 file_size_ = file_.size(ec); in open() 200 if(file_.is_open()) in reset() 203 file_.close(ignored); in reset() 207 file_ = std::move(file); in reset() 210 file_size_ = file_.size(ec); in reset() [all …]
|
/third_party/openh264/test/utils/ |
D | FileInputStream.h | 10 file_.open (fileName, std::ios_base::in | std::ios_base::binary); in Open() 11 return file_.is_open(); in Open() 14 if (!file_.good()) { in read() 17 file_.read (static_cast<char*> (ptr), len); in read() 18 return (int) file_.gcount(); in read() 21 std::ifstream file_;
|
/third_party/boost/boost/iostreams/device/ |
D | file.hpp | 61 void imbue(const std::locale& loc) { pimpl_->file_.pubimbue(loc); } in imbue() 66 { file_.open(path.c_str(), mode); } in impl() 67 ~impl() { if (file_.is_open()) file_.close(); } in ~impl() 68 BOOST_IOSTREAMS_BASIC_FILEBUF(Ch) file_; 146 std::streamsize result = pimpl_->file_.sgetn(s, n); in read() 153 return !!pimpl_->file_.sputbackc(c); in putback() 159 { return pimpl_->file_.sputn(s, n); } in write() 165 { return iostreams::seek(pimpl_->file_, off, way); } in seek() 176 bool basic_file<Ch>::is_open() const { return pimpl_->file_.is_open(); } in is_open() 179 void basic_file<Ch>::close() { pimpl_->file_.close(); } in close() [all …]
|
/third_party/boost/libs/beast/include/boost/beast/http/impl/ |
D | file_body_win32.hpp | 72 file_win32 file_; member in boost::beast::http::basic_file_body::value_type 85 return file_; in file() 91 return file_.is_open(); in is_open() 140 BOOST_ASSERT(body_.file_.is_open()); in writer() 146 BOOST_ASSERT(body_.file_.is_open()); in init() 160 auto const nread = body_.file_.read(buf_, n, ec); in get() 198 BOOST_ASSERT(body_.file_.is_open()); in init() 210 nwritten += body_.file_.write( in put() 245 file_.close(ignored); in close() 254 file_.open(path, mode, ec); in open() [all …]
|
/third_party/boost/boost/beast/http/impl/ |
D | file_body_win32.hpp | 72 file_win32 file_; member in boost::beast::http::basic_file_body::value_type 85 return file_; in file() 91 return file_.is_open(); in is_open() 140 BOOST_ASSERT(body_.file_.is_open()); in writer() 146 BOOST_ASSERT(body_.file_.is_open()); in init() 160 auto const nread = body_.file_.read(buf_, n, ec); in get() 198 BOOST_ASSERT(body_.file_.is_open()); in init() 210 nwritten += body_.file_.write( in put() 245 file_.close(ignored); in close() 254 file_.open(path, mode, ec); in open() [all …]
|
/third_party/cef/libcef/browser/ |
D | stream_impl.cc | 72 : close_(close), file_(file) {} in CefFileReader() 77 base::CloseFile(file_); in ~CefFileReader() 82 return fread(ptr, size, n, file_); in Read() 88 return _fseeki64(file_, offset, whence); in Seek() 90 return fseek(file_, offset, whence); in Seek() 97 return _ftelli64(file_); in Tell() 99 return ftell(file_); in Tell() 105 return feof(file_); in Eof() 111 : file_(file), close_(close) {} in CefFileWriter() 116 base::CloseFile(file_); in ~CefFileWriter() [all …]
|
/third_party/grpc/src/compiler/ |
D | protobuf_plugin.h | 156 ProtoBufFile(const grpc::protobuf::FileDescriptor* file) : file_(file) {} in ProtoBufFile() 158 std::string filename() const { return file_->name(); } in filename() 163 std::string package() const { return file_->package(); } in package() 170 int service_count() const { return file_->service_count(); } in service_count() 173 new ProtoBufService(file_->service(i))); in service() 182 return GetCommentsHelper(file_, true, prefix); in GetLeadingComments() 186 return GetCommentsHelper(file_, false, prefix); in GetTrailingComments() 190 return grpc_python_generator::get_all_comments(file_); in GetAllComments() 195 for (int i = 0; i < file_->dependency_count(); ++i) { in GetImportNames() 196 const auto& dep = *file_->dependency(i); in GetImportNames() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/ |
D | manifest_op.cc | 39 file_(std::move(file)), in ManifestOp() 87 trow->setPath({data.first, file_}); in LoadTensorRow() 101 …out << "\nNumber of rows:" << num_rows_ << "\nManifest file: " << file_ << "\nDecode: " << (decode… in Print() 137 auto realpath = FileUtils::GetRealPath(file_.data()); in ParseManifestFile() 139 MS_LOG(ERROR) << "Invalid file, get real path failed, path=" << file_; in ParseManifestFile() 140 RETURN_STATUS_UNEXPECTED("Invalid data, get real path failed, path=" + file_); in ParseManifestFile() 145 RETURN_STATUS_UNEXPECTED("Invalid file, failed to open Manifest file: " + file_); in ParseManifestFile() 156 …RETURN_STATUS_UNEXPECTED("Invalid data, 'source' is not found in Manifest file: " + file_ + " at l… in ParseManifestFile() 168 …RETURN_STATUS_UNEXPECTED("Invalid data, 'usage' is not found in Manifest file: " + file_ + " at li… in ParseManifestFile() 183 … RETURN_STATUS_UNEXPECTED("Invalid data, 'name' of label is not found in Manifest file: " + file_ + in ParseManifestFile() [all …]
|