Commit Graph

809 Commits

Author SHA1 Message Date
Jon Skeet
984eb9c27a Just comments. 2008-08-15 21:15:41 +01:00
Jon Skeet
0b6d39acc4 Remove unused variable. 2008-08-15 21:14:41 +01:00
Jon Skeet
92b0aaa09e Use a nullable int for the memoizedSize, just because it's neater. 2008-08-15 21:12:55 +01:00
Jon Skeet
9deef9baec Add aliases into enums 2008-08-15 20:57:15 +01:00
Jon Skeet
10ad653ce5 Reflect Java source code. 2008-08-15 20:48:16 +01:00
Jon Skeet
40c2221ef4 Updated C# tests and code for TextFormat to match Java. 2008-08-15 20:40:05 +01:00
Jon Skeet
7941ebf198 Updates due to changes to descriptor.proto 2008-08-15 20:08:37 +01:00
Jon Skeet
8f721f5dc7 Experimental (and currently unused) behaviour to determine whether or not a message has any required fields. 2008-08-14 20:38:09 +01:00
Jon Skeet
b01135c485 Align delegates with .NET 3.5 2008-08-14 20:38:08 +01:00
Jon Skeet
6d0cbe7200 Use a switch instead of a map for WireFormat. 2008-08-14 20:38:08 +01:00
Jon Skeet
0980982095 Evil reflection optimisation. 2008-08-14 20:38:07 +01:00
Jon Skeet
38da52d349 Micro-optimisations around varints and strings. 2008-08-14 20:38:06 +01:00
Jon Skeet
272d384f6a Use delegates instead of dynamic reflection. 2008-08-14 20:37:12 +01:00
Jon Skeet
3b3150881a Optimisations of IsInitialized and removal of unnecessary references. 2008-08-14 20:37:11 +01:00
Jon Skeet
81efcf25f3 Removed accidental addition of test directory. 2008-08-14 20:37:10 +01:00
Jon Skeet
62b3d31fb7 Fixed a few TODOs 2008-08-14 20:36:24 +01:00
Jon Skeet
eb4ef52c66 Abandon the 'self' namespace alias - we need to be able to import types in other namespaces too. 2008-08-14 20:35:35 +01:00
Jon Skeet
5407a4329d Signed the test assembly, and added InternalsVisibleTo. Some public members now internal again. 2008-08-14 20:35:34 +01:00
Jon Skeet
38d453d318 Beginning to fix the TODOs 2008-08-14 20:35:34 +01:00
Jon Skeet
15041fa06c Removed EnumDescriptorIndexAttribute - not really necessary. 2008-08-14 20:35:33 +01:00
Jon Skeet
283b7a1a51 Batch file to generate the bootstrapping proto files 2008-08-14 20:35:33 +01:00
Jon Skeet
48ce28bf2f Copyright fixes, a bit of documentation, and removed unnecessary using directives. 2008-08-14 20:35:32 +01:00
Jon Skeet
5923b37223 Finished service test with a mock. 2008-08-14 20:35:31 +01:00
Jon Skeet
3ae573c174 Fleshed out service interfaces, and wrote the simpler service tests. Mocking tests still to be done. 2008-08-14 20:35:31 +01:00
Jon Skeet
1e42fdde2e Implemented text parsing. 2008-08-14 20:35:30 +01:00
Jon Skeet
feb9385b04 Lots of text formatting tests, but ignored the parsing ones for the moment. 2008-08-14 20:35:30 +01:00
Jon Skeet
ca4cbda9de Extensions don't need to go under a separate type. 2008-08-14 20:35:29 +01:00
Jon Skeet
d6c9495797 More tests, and a bug fix. 2008-08-14 20:35:28 +01:00
Jon Skeet
19ed9c0782 UnknownFieldSet tests, and a fix to repeated extension elements. 2008-08-14 20:35:28 +01:00
Jon Skeet
a80a37ccd5 Tidying up, and a couple of extra tests. 2008-08-14 20:35:27 +01:00
Jon Skeet
f26f8dce02 The great generics revisiting. 2008-08-14 20:35:27 +01:00
Jon Skeet
cabd06d12f More tests, and implementation of UninitializedMessageException description. 2008-08-14 20:35:25 +01:00
Jon Skeet
794409b379 More tests, more fixes. 2008-08-14 20:35:24 +01:00
Jon Skeet
ba02091ef8 New unit tests and corresponding bug fixes. 2008-08-14 20:35:24 +01:00
Jon Skeet
bef2caf5e4 Added DynamicMessage and ExtendableBuilder, along with the first supporting tests. 2008-08-14 20:35:23 +01:00
Jon Skeet
5d7adf66ce First unit test reading a complete message\! 2008-08-14 20:35:22 +01:00
Jon Skeet
3f9a6f2116 Implemented GeneratedExtension, although list handling may be incorrect. 2008-08-14 20:35:22 +01:00
Jon Skeet
575083ae9c Initial support for services and extensions. Incomplete, but enough to get generated unit test files to compile. 2008-08-14 20:35:21 +01:00
Jon Skeet
1353315ded Implemented TextFormatter 2008-08-14 20:35:20 +01:00
Jon Skeet
b84310e110 Field accessor implementations complete (hopefully) 2008-08-14 20:35:20 +01:00
Jon Skeet
023d7398d6 Update Makefile in terms of C# sources and keyfile command line option
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:35:19 +01:00
Jon Skeet
4e6215c734 Update Makefile in terms of C# sources and keyfile command line option
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:35:19 +01:00
Jon Skeet
00b0af0890 Fix default instance behaviour for repeated types 2008-08-14 20:35:18 +01:00
Jon Skeet
c1215c4660 Removed Descriptor.cs which was an early attempt at generation 2008-08-14 20:35:17 +01:00
Jon Skeet
a03ea11c52 Finish implementing GeneratedBuilder. 2008-08-14 20:35:17 +01:00
Jon Skeet
cd85190847 Two more which should have been in the last commit 2008-08-14 20:35:15 +01:00
Jon Skeet
3351bb63da Descriptors are pretty much complete, with a slight issue of how to find the default type for a repeated field. 2008-08-14 20:35:15 +01:00
Jon Skeet
2b61cbf408 Autogeneration now hopefully close to correct. Library builds! (Not finished though...) 2008-08-14 20:35:14 +01:00
Jon Skeet
de21d2c92c Patch from Miguel de Icaza: This introduces auto-detection of Mono to configure, and if found, builds and installs the runtime library, and provides a pkg-config file so developers can easily use it on Unix. 2008-08-14 20:33:37 +01:00
Jon Skeet
9f4f0a56b1 Descriptor framework skeleton. Somewhat generic to avoid lots of code duplication. 2008-08-14 20:33:36 +01:00
Jon Skeet
c0daf10724 Changed fixed size methods to return unsigned integers. Finished FieldSet. Introduced mapping from FieldType to WireType and MappedType. 2008-08-14 20:33:35 +01:00
Jon Skeet
ec8c395517 Gradually implementing FieldSet 2008-08-14 20:33:34 +01:00
Jon Skeet
b83aee759a Fix AbstractMessage and AbstractBuilder to get the explicit interface implementation sorted 2008-08-14 20:33:33 +01:00
Jon Skeet
621bb698e5 Some work on AbstractBuilder, and complete implementation of UnknownField and UnknownFieldSet 2008-08-14 20:33:33 +01:00
Jon Skeet
fe7bb26214 Implemented AbstractMethod and split the descriptors into a new package 2008-08-14 20:33:30 +01:00
Jon Skeet
c26b43d8cd Added copyright notices
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:29 +01:00
Jon Skeet
1dd0a61d09 More tests for CodedInputStream, and some more WireFormat
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:29 +01:00
Jon Skeet
b802a94f45 Half way through CodedInputStream
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:28 +01:00
Jon Skeet
baa2bf54c2 First part of dotnet library
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:27 +01:00