Are google protocol enumerated types (when built for C++)  held in
memory from least significant bit zero. In other words does the
following enum fit in the least significant 2 bits of say an int:

enum my2BitEnum {
    a = 0;
    b = 1;
    c = 2;
    d = 3;

...and does my8BitEnumQuestion only fit in a byte sized type (eg
char), or is it packed somehow to fit in the same memory space as

enum my8BitEnumQuestion {
    a = 252;
    b = 253;
    c = 254;
    d = 255;


You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to