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
It's very hard to handle the enum nested in enum case due to the selector introduced in the parse function prototype. I need a way to parse PacketType and specifying the Selector is the first byte. And PacketType::parse don't need the second parameter as the selector since the information is encoded in the first byte of packet.
The text was updated successfully, but these errors were encountered:
I have a use case to parse a small packet to enum. The selector is the first byte. From the documentation I must implement something like:
It's very hard to handle the enum nested in enum case due to the selector introduced in the parse function prototype. I need a way to parse PacketType and specifying the Selector is the first byte. And PacketType::parse don't need the second parameter as the selector since the information is encoded in the first byte of packet.
The text was updated successfully, but these errors were encountered: