aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/CodedOutputStream.ComputeSize.cs
Commit message (Collapse)AuthorAgeFilesLines
* Simplify ComputeInt32Size to call ComputeInt32SizeNoTag.Jon Skeet2015-06-121-11/+1
|
* Coded*Stream streamlining.Jon Skeet2015-06-121-130/+2
| | | | 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-6/+6
| | | | 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...
* Improve string encoding times.Jon Skeet2015-06-111-2/+2
| | | | | Cache a reference to Encoding.UTF8 - the property access is (rather surprisingly) significant. Additionally, when we detect that the string is all ASCII (due to the computed length in bytes being the length in characters), we can perform the encoding very efficiently ourselves.
* First pass at the mutable API. Quite a bit more to do - in particular, it's ↵Jon Skeet2015-06-091-46/+25
| | | | pretty slow right now.
* Remove CLS compliance from runtime code.Jon Skeet2015-04-291-10/+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/+653