The event-handling interface implemented for a proto callback decoding operation (CallbackDecoder).
◆ ProcessField()
| virtual Status pw::protobuf::DecodeHandler::ProcessField |
( |
CallbackDecoder & |
decoder, |
|
|
uint32_t |
field_number |
|
) |
| |
|
pure virtual |
Callback invoked for each field encountered in the decoded proto message.
Receives a reference to the CallbackDecoder object, allowing the handler to call the appropriate method to extract the field's data.
- Parameters
-
| [in] | decoder | The callback decoder instance processing the field. |
| [in] | field_number | The tag number of the encountered field. |
- Returns
- OK: Field processed successfully, continue decoding.
- CANCELLED: Stop decoding early without returning an error.
- Other statuses: Stop decoding and exit with the returned error status.
The documentation for this class was generated from the following file:
- pw_protobuf/public/pw_protobuf/decoder.h