Austin Schuh | 43c6a35 | 2019-09-30 22:22:10 -0700 | [diff] [blame] | 1 | #ifndef AOS_FLATBUFFER_UTILS_ |
2 | #define AOS_FLATBUFFER_UTILS_ | ||||
3 | |||||
4 | #include "flatbuffers/flatbuffers.h" | ||||
5 | |||||
6 | namespace aos { | ||||
7 | |||||
8 | // Returns a human readable description of the type. | ||||
9 | inline const char *ElementaryTypeName( | ||||
10 | const flatbuffers::ElementaryType elementary_type) { | ||||
11 | return flatbuffers::ElementaryTypeNames()[elementary_type] + 3; | ||||
12 | } | ||||
13 | |||||
14 | } // namespace aos | ||||
15 | |||||
16 | #endif // AOS_FLATBUFFER_UTILS_ |