Sorry for the confusion.
In C# an enumeration can be defined as:
[Flags]
public enum Status : byte {
TemperatureAlarm = 0x01,
AcidHighLevelAlarm = 0x02,
FloodAlarm = 0x04,
ChlorineAlarm = 0x08
}
and the value as:
Status stat = Status.ChlorineAlarm | Status.FloodAlarm;
This would be coded as a single byte rather than a list of bools
represented as bytes.
I'm not sure how to implement in a protobuf though, protobuf's
representation of an enumeration
is as a discreet constant like above, but I don't see how to combine
them to attain bit packing
in this situation.
Scotty
On Jul 28, 12:36 pm, "Kenton Varda" <
ken...@google.com> wrote:
> What is a "FLAGS style enumeration", exactly?
>