You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I want to decide whether to process a protobuf message based on one or two fields, and I would like to make that decision before going to the effort of parsing the whole message.
Is there anything Prost provides that could make this easier? Do I just need to define an additional message type that includes only the subset of fields (with identical indices) and parse with that type instead? Is there any way I can say "parse the X field out of this message" or something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I want to decide whether to process a protobuf message based on one or two fields, and I would like to make that decision before going to the effort of parsing the whole message.
Is there anything Prost provides that could make this easier? Do I just need to define an additional message type that includes only the subset of fields (with identical indices) and parse with that type instead? Is there any way I can say "parse the X field out of this message" or something?
Beta Was this translation helpful? Give feedback.
All reactions