@@ -383,6 +383,14 @@ static const char *GenerateTextImpl(const Parser &parser, const Table *table,
383383 return nullptr ;
384384}
385385
386+ // Generate a text representation of a flatbuffer in JSON format.
387+ // Deprecated: please use `GenTextFromTable`
388+ bool GenerateTextFromTable (const Parser &parser, const void *table,
389+ const std::string &table_name,
390+ std::string *_text) {
391+ return GenTextFromTable (parser, table, table_name, _text) != nullptr ;
392+ }
393+
386394// Generate a text representation of a flatbuffer in JSON format.
387395const char *GenTextFromTable (const Parser &parser, const void *table,
388396 const std::string &table_name, std::string *_text) {
@@ -392,6 +400,12 @@ const char *GenTextFromTable(const Parser &parser, const void *table,
392400 return GenerateTextImpl (parser, root, *struct_def, _text);
393401}
394402
403+ // Deprecated: please use `GenText`
404+ const char *GenerateText (const Parser &parser, const void *flatbuffer,
405+ std::string *_text) {
406+ return GenText (parser, flatbuffer, _text);
407+ }
408+
395409// Generate a text representation of a flatbuffer in JSON format.
396410const char *GenText (const Parser &parser, const void *flatbuffer,
397411 std::string *_text) {
@@ -406,6 +420,12 @@ static std::string TextFileName(const std::string &path,
406420 return path + file_name + " .json" ;
407421}
408422
423+ // Deprecated: please use `GenTextFile`
424+ const char *GenerateTextFile (const Parser &parser, const std::string &path,
425+ const std::string &file_name) {
426+ return GenTextFile (parser, path, file_name);
427+ }
428+
409429const char *GenTextFile (const Parser &parser, const std::string &path,
410430 const std::string &file_name) {
411431 if (parser.opts .use_flexbuffers ) {
0 commit comments