PrefixStyle.cs 850 B

1234567891011121314151617181920212223242526
  1. 
  2. namespace ProtoBuf
  3. {
  4. /// <summary>
  5. /// Specifies the type of prefix that should be applied to messages.
  6. /// </summary>
  7. public enum PrefixStyle
  8. {
  9. /// <summary>
  10. /// No length prefix is applied to the data; the data is terminated only be the end of the stream.
  11. /// </summary>
  12. None,
  13. /// <summary>
  14. /// A base-128 length prefix is applied to the data (efficient for short messages).
  15. /// </summary>
  16. Base128,
  17. /// <summary>
  18. /// A fixed-length (little-endian) length prefix is applied to the data (useful for compatibility).
  19. /// </summary>
  20. Fixed32,
  21. /// <summary>
  22. /// A fixed-length (big-endian) length prefix is applied to the data (useful for compatibility).
  23. /// </summary>
  24. Fixed32BigEndian
  25. }
  26. }