[select] Store options in flash to reduce RAM usage (#11514)

This commit is contained in:
J. Nick Koston
2025-10-29 15:28:16 +13:00
committed by GitHub
parent a609343cb6
commit f3634edc22
15 changed files with 111 additions and 40 deletions
+6
View File
@@ -88,6 +88,12 @@ static void dump_field(std::string &out, const char *field_name, StringRef value
out.append("\n");
}
static void dump_field(std::string &out, const char *field_name, const char *value, int indent = 2) {
append_field_prefix(out, field_name, indent);
out.append("'").append(value).append("'");
out.append("\n");
}
template<typename T> static void dump_field(std::string &out, const char *field_name, T value, int indent = 2) {
append_field_prefix(out, field_name, indent);
out.append(proto_enum_to_string<T>(value));