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

Function encode_cycle_input_states

src/config.cpp:965–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963 return ret;
964}
965bool encode_cycle_input_states(pb_ostream_t *stream, const pb_field_t *field, void *const *arg)
966{
967 proto_CyclingInputState proto_cycle;
968 for (auto &state : cycle_input_states)
969 {
970 proto_cycle.id = state.first;
971 proto_cycle.state = state.second;
972 pb_encode_tag_for_field(stream, field);
973 pb_encode_submessage(stream, proto_CyclingInputState_fields, &proto_cycle);
974 }
975 return true;
976}
977bool decode_toggle_input_states(pb_istream_t *stream, const pb_field_t *field, void **arg)
978{
979 proto_ToggleInputState proto_toggle;

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