1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- namespace ProtoBuf
- {
- /// <summary>
- /// Indicates the encoding used to represent an individual value in a protobuf stream
- /// </summary>
- public enum WireType
- {
- /// <summary>
- /// Represents an error condition
- /// </summary>
- None = -1,
- /// <summary>
- /// Base-128 variant-length encoding
- /// </summary>
- Variant = 0,
- /// <summary>
- /// Fixed-length 8-byte encoding
- /// </summary>
- Fixed64 = 1,
- /// <summary>
- /// Length-variant-prefixed encoding
- /// </summary>
- String = 2,
- /// <summary>
- /// Indicates the start of a group
- /// </summary>
- StartGroup = 3,
- /// <summary>
- /// Indicates the end of a group
- /// </summary>
- EndGroup = 4,
- /// <summary>
- /// Fixed-length 4-byte encoding
- /// </summary>10
- Fixed32 = 5,
- /// <summary>
- /// This is not a formal wire-type in the "protocol buffers" spec, but
- /// denotes a variant integer that should be interpreted using
- /// zig-zag semantics (so -ve numbers aren't a significant overhead)
- /// </summary>
- SignedVariant = WireType.Variant | (1 << 3),
- }
- }
|