in cpp/spectrum/image/metadata/Entry.cpp [30:52]
std::string entryTypeStringFromValue(const Entry::Type type) {
switch (type) {
case Entry::BYTE:
return "byte";
case Entry::ASCII:
return "ascii";
case Entry::SHORT:
return "short";
case Entry::LONG:
return "long";
case Entry::RATIONAL:
return "rational";
case Entry::UNDEFINED:
return "undefined";
case Entry::SLONG:
return "slong";
case Entry::SRATIONAL:
return "srational";
default:
return ::facebook::spectrum::core::makeUnknownWithValue<std::uint32_t>(
type);
}
}