1. 31 Jan, 2018 1 commit
  2. 15 Jan, 2018 1 commit
    • Jon Skeet's avatar
      Add DiscardUnknownFields support for C# · 47b7d2c7
      Jon Skeet authored
      By default, unknown fields are preserved when parsing. To discard
      them, use a parser configured to do so:
      
      var parser = MyMessage.Parser.WithDiscardUnknownFields(true);
      47b7d2c7
  3. 19 Dec, 2017 1 commit
  4. 13 Dec, 2017 1 commit
  5. 11 Aug, 2017 1 commit
    • Jon Skeet's avatar
      Detect invalid tags with a field number of 0 in C# · e0d24cc8
      Jon Skeet authored
      Previously we only rejected the tag if the tag itself was 0, i.e.
      field=0, type=varint. The type doesn't matter: field 0 is always
      invalid.
      
      This removes the last of the C# conformance failures.
      e0d24cc8
  6. 04 Jul, 2017 1 commit
  7. 10 Jul, 2016 1 commit
  8. 29 Feb, 2016 1 commit
  9. 15 Feb, 2016 1 commit
  10. 04 Feb, 2016 1 commit
  11. 29 Sep, 2015 1 commit
    • Jon Skeet's avatar
      Added documentation to generated code. · 2212f56b
      Jon Skeet authored
      There are now summaries for:
      - The Types nested class (which holds nested types)
      - The file descriptor class for each proto
      - The enum generated for each oneof
      
      (Also fixed two typos.)
      
      Generated code in next commit.
      2212f56b
  12. 10 Aug, 2015 1 commit
    • Jon Skeet's avatar
      More TODOs done. · f2732c7a
      Jon Skeet authored
      - Removed a TODO without change in DescriptorPool.LookupSymbol - the TODOs were around performance, and this is only used during descriptor initialization
      - Make the CodedInputStream limits read-only, adding a static factory method for the rare cases when this is useful
      - Extracted IDeepCloneable into its own file.
      f2732c7a
  13. 08 Aug, 2015 2 commits
  14. 06 Aug, 2015 1 commit
    • Jon Skeet's avatar
      Skip groups properly. · e7f88ff1
      Jon Skeet authored
      Now the generated code doesn't need to check for end group tags, as it will skip whole groups at a time.
      Currently it will ignore extraneous end group tags, which may or may not be a good thing.
      Renamed ConsumeLastField to SkipLastField as it felt more natural.
      Removed WireFormat.IsEndGroupTag as it's no longer useful.
      
      This mostly fixes issue 688.
      
      (Generated code changes coming in next commit.)
      e7f88ff1
  15. 05 Aug, 2015 3 commits
  16. 04 Aug, 2015 1 commit
  17. 03 Aug, 2015 1 commit
  18. 17 Jul, 2015 1 commit
  19. 30 Jun, 2015 3 commits
  20. 25 Jun, 2015 1 commit
  21. 19 Jun, 2015 1 commit
    • Jon Skeet's avatar
      Minor cleanup. · cdeda4b8
      Jon Skeet authored
      - Make some members internal
      - Remove a lot of FrameworkPortability that isn't required
      - Start adding documentation comments
      - Remove some more group-based members
      - Not passing in "the last tag read" into Read*Array, g
      cdeda4b8
  22. 17 Jun, 2015 1 commit
  23. 12 Jun, 2015 3 commits
    • Jon Skeet's avatar
      Reimplement RepeatedField<T> using an array as the backing store. · 7532f025
      Jon Skeet authored
      This is effectively reimplementing List<T>, but with a few advantages:
      - We know that an empty repeated field is common, so don't allocate an array until we need to
      - With direct access to the array, we can easily convert enum values to int without boxing
      - We can relax the restrictions over what happens if the repeated field is modified while iterating, avoiding so much checking
      
      This is somewhat risky, in that reimplementing a building block like this is *always* risky, but hey...
      (The performance benefits are significant...)
      7532f025
    • Jon Skeet's avatar
      Fix incorrect handling of non-seekable streams. · ca2adbd5
      Jon Skeet authored
      This mirrors commit 7c86bbbc7a3365c034d82173b38ec4427b98b3b2 in the pull request to
      the main protobuf project, but also reduces the size of the buffer created. (There's no point in
      creating a 1024-byte buffer if we're only skipping 5 bytes...)
      ca2adbd5
    • Jon Skeet's avatar
      Coded*Stream streamlining. · 96ddf01a
      Jon Skeet authored
      Remove ICodedInputStream and ICodedOutputStream, and rewrite CodedInputStream and CodedOutputStream to be specific to the binary format. If we want to support text-based formats, that can be a whole different serialization mechanism.
      96ddf01a
  24. 11 Jun, 2015 1 commit
  25. 09 Jun, 2015 1 commit
  26. 29 Apr, 2015 1 commit