class EncodedDescriptorDatabase

Defined at line 289 of file ../../third_party/protobuf/src/src/google/protobuf/descriptor_database.h

Very similar to SimpleDescriptorDatabase, but stores all the descriptors

as raw bytes and generally tries to use as little memory as possible.

The same caveats regarding FindFileContainingExtension() apply as with

SimpleDescriptorDatabase.

Public Methods

void EncodedDescriptorDatabase ()
void EncodedDescriptorDatabase (const EncodedDescriptorDatabase & )

Defined at line 292 of file ../../third_party/protobuf/src/src/google/protobuf/descriptor_database.h

bool FindNameOfFileContainingSymbol (absl::string_view symbol_name, std::string * output)

Like FindFileContainingSymbol but returns only the name of the file.

bool FindFileByName (absl::string_view filename, FileDescriptorProto * output)

implements DescriptorDatabase -----------------------------------

bool FindFileContainingSymbol (absl::string_view symbol_name, FileDescriptorProto * output)
bool FindFileContainingExtension (absl::string_view containing_type, int field_number, FileDescriptorProto * output)
bool FindAllExtensionNumbers (absl::string_view extendee_type, std::vector<int> * output)
bool FindAllFileNames (std::vector<std::string> * output)
EncodedDescriptorDatabase & operator= (const EncodedDescriptorDatabase & )

Defined at line 293 of file ../../third_party/protobuf/src/src/google/protobuf/descriptor_database.h

void ~EncodedDescriptorDatabase ()
bool Add (const void * encoded_file_descriptor, int size)

Adds the FileDescriptorProto to the database. The descriptor is provided

in encoded form. The database does not make a copy of the bytes, nor

does it take ownership; it's up to the caller to make sure the bytes

remain valid for the life of the database. Returns false and logs an error

if the bytes are not a valid FileDescriptorProto or if the file conflicted

with a file already in the database.

bool AddCopy (const void * encoded_file_descriptor, int size)

Like Add(), but makes a copy of the data, so that the caller does not

need to keep it around.