WireFormat.cs 555 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Google.ProtocolBuffers {
  5. public class WireFormat {
  6. public enum WireType {
  7. Varint = 0,
  8. Fixed64 = 1,
  9. LengthDelimited = 2,
  10. StartGroup = 3,
  11. EndGroup = 4,
  12. Fixed32 = 5
  13. }
  14. internal class MessageSetField {
  15. internal const int Item = 1;
  16. internal const int TypeID = 2;
  17. internal const int Message = 3;
  18. }
  19. public static uint MakeTag(int fieldNumber, WireType type) {
  20. // FIXME
  21. return 0;
  22. }
  23. }
  24. }