commit | 9a9c21d675cbb7a15ec57d8f3cf4e08ab0831949 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Wed Jul 28 13:01:44 2010 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Wed Jul 28 13:01:44 2010 -0700 |
tree | 67386982696089d774f29456ceb96ef14a6f7799 | |
parent | 25732409c8808c97359de84825178a6591765a9e [diff] |
protobuf: Support encoding Enums Encode enum values using their ordinal as a varint, similar to what the proto compiler from Google would do. This requires that application developers carefully assign their enum orders in order to maintain values already encoded in protobufs. Change-Id: I1f40170c583125f425f4ff4a3aa7045ee0a820ca Signed-off-by: Shawn O. Pearce <sop@google.com>