class EncodedDescriptorDatabase
Defined at line 265 of file ../../third_party/protobuf/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 268 of file ../../third_party/protobuf/src/google/protobuf/descriptor_database.h
EncodedDescriptorDatabase & operator= (const EncodedDescriptorDatabase & )
Defined at line 269 of file ../../third_party/protobuf/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.
bool FindNameOfFileContainingSymbol (const std::string & symbol_name, std::string * output)
Like FindFileContainingSymbol but returns only the name of the file.
bool FindFileByName (const std::string & filename, FileDescriptorProto * output)
implements DescriptorDatabase -----------------------------------
bool FindFileContainingSymbol (const std::string & symbol_name, FileDescriptorProto * output)
bool FindFileContainingExtension (const std::string & containing_type, int field_number, FileDescriptorProto * output)
bool FindAllExtensionNumbers (const std::string & extendee_type, std::vector<int> * output)
bool FindAllFileNames (std::vector<std::string> * output)