aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/CodedInputStream.cs
Commit message (Collapse)AuthorAgeFilesLines
* First pass at the big rename from ProtocolBuffers to Google.Protobuf.Jon Skeet2015-07-171-1144/+0
| | | | We'll see what I've missed when CI fails...
* Fix copyright lines for all C# code.Jon Skeet2015-06-301-5/+1
| | | | | | Everything should now be consistent - the only difference between files is the year (aside from generated files). Fixes issue #531.
* Tidying up and extra tests.Jon Skeet2015-06-301-157/+145
| | | | This is mostly just making things internal instead of public, removing and reordering a bunch of code in CodedInputStream/CodedOutputStream, and generally tidying up.
* First pass (not yet compiling) at removing all the array handling code from ↵Jon Skeet2015-06-301-282/+6
| | | | | | | Coded*Stream. Prod code works, but some tests are broken. Obviously those need fixing, then more tests, and review benchmarks.
* More map tests, and various production code improvements.Jon Skeet2015-06-251-18/+10
| | | | Generated code in next commit.
* Minor cleanup.Jon Skeet2015-06-191-47/+43
| | | | | | | | - 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
* Use our "local" copy of Encoding.UTF8 in CodedInputStream too.Jon Skeet2015-06-171-2/+2
|
* Reimplement RepeatedField<T> using an array as the backing store.Jon Skeet2015-06-121-3/+4
| | | | | | | | | | 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...)
* Fix incorrect handling of non-seekable streams.Jon Skeet2015-06-121-2/+2
| | | | | | 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...)
* Coded*Stream streamlining.Jon Skeet2015-06-121-348/+79
| | | | 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.
* Reimplement enums as int values, and get rid of EnumHelper.Jon Skeet2015-06-111-8/+9
| | | | This makes repeated fields really awkward at the moment - but when we reimplement RepeatedField<T> to be backed by an array, we can cast the array directly...
* First pass at the mutable API. Quite a bit more to do - in particular, it's ↵Jon Skeet2015-06-091-138/+25
| | | | pretty slow right now.
* Remove CLS compliance from runtime code.Jon Skeet2015-04-291-36/+0
| | | | We need to remove it from the generator too; I'll raise a github issue for that.
* Imported protobuf-csharp-port into csharp/ treeJan Tattermusch2015-04-161-0/+1864