MCPcopy Create free account
hub / github.com/Santroller/Santroller / encode_toggle_input_states

Function encode_toggle_input_states

src/config.cpp:984–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982 return ret;
983}
984bool encode_toggle_input_states(pb_ostream_t *stream, const pb_field_t *field, void *const *arg)
985{
986 proto_ToggleInputState proto_toggle;
987 for (auto &state : toggle_input_states)
988 {
989 proto_toggle.id = state.first;
990 proto_toggle.state = state.second;
991 pb_encode_tag_for_field(stream, field);
992 pb_encode_submessage(stream, proto_ToggleInputState_fields, &proto_toggle);
993 }
994 return true;
995}
996bool inner_load(const uint32_t currentProfile, const uint8_t *dataPtr, uint32_t size, uint32_t mainSize, uint32_t auxSize)
997{
998

Callers

nothing calls this directly

Calls 2

pb_encode_tag_for_fieldFunction · 0.85
pb_encode_submessageFunction · 0.85

Tested by

no test coverage detected