Jon Skeet
4352744859
Use Length to check string/bytes fields for emptiness - it's faster than an equality check.
2015-06-12 11:18:37 +01:00
Jon Skeet
8fcde2cabd
Fix oneof behaviour in the face of default values.
2015-06-12 11:17:07 +01:00
Jon Skeet
ca2adbd560
Fix incorrect handling of non-seekable streams.
...
This mirrors commit 7c86bbbc7a
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...)
2015-06-12 09:57:04 +01:00
Jon Skeet
eb70bd0b60
Update the AddressBook tutorial to reflect the mutable design.
2015-06-12 09:53:44 +01:00
Jon Skeet
96ddf01aed
Coded*Stream streamlining.
...
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.
2015-06-12 09:53:12 +01:00
Jon Skeet
39aaf21d51
Reimplement enums as int values, and get rid of EnumHelper.
...
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...
2015-06-11 21:15:36 +01:00
Jon Skeet
ce0e348ded
Optimize WriteRawInt32 for the common case of a value < 128, which is a single byte.
...
Aside from anything else, this will be used for all tags for fields 1-15.
2015-06-11 14:32:19 +01:00
Jon Skeet
35e4dbd518
Improve string encoding times.
...
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.
2015-06-11 14:19:30 +01:00
Jon Skeet
954e720837
Use expression trees to avoid boxing when converting enums.
2015-06-09 19:44:24 +01:00
Jon Skeet
e38294a62d
First pass at the mutable API. Quite a bit more to do - in particular, it's pretty slow right now.
2015-06-09 19:30:44 +01:00
Jon Skeet
f52426827e
First stab at new proto3-only code generator
2015-06-05 20:44:05 +01:00
Jie Luo
8fe039a69a
Merge pull request #462 from anandolee/master
...
Migrate writer to printer for C#
2015-06-04 16:15:23 -07:00
Feng Xiao
42f109d7bc
Merge pull request #457 from xfxyjwf/cmake
...
Add cmake support.
2015-06-04 13:35:45 -07:00
Jie Luo
90da3514cd
Migrate writer to io::Printer for C#
2015-06-04 11:39:13 -07:00
Feng Xiao
2286ab328c
Fix README.md formatting.
...
Change-Id: I121cb70bfdc4894c297ab1a36f1db47736c0652b
2015-06-04 11:28:19 -07:00
Jisi Liu
60c510a381
Merge pull request #456 from xfxyjwf/android
...
Remove Android.mk
2015-06-04 08:40:18 -07:00
Feng Xiao
34448fca45
Add an cmake option to exclude tests.
2015-06-04 01:27:19 -07:00
Feng Xiao
96f1d4ada2
Merge pull request #453 from bakineggs/master
...
Add protoc path detection for Mac OS
2015-06-03 11:20:08 -07:00
Feng Xiao
b866d3c727
Remove Android.mk
...
This file bares a different copyright license and also doesn't actually
work (out-dated file lists, no config.h/pbconfig.h, refers to inexist
AOSP paths).
2015-06-02 22:04:45 -07:00
Feng Xiao
dbcfc5e202
Merge pull request #444 from xfxyjwf/vs2010_fix
...
Fix two issues on vs2010.
2015-06-02 21:32:41 -07:00
Dan Barry
0af3ed5189
Add protoc path detection for Mac OS
2015-06-02 17:11:35 -07:00
Paul Yang
4644f99d1a
Merge pull request #447 from murgatroid99/podspec_fix
...
Add remaining not-already-imported well known types files to podspec
2015-06-02 16:03:38 -07:00
Feng Xiao
69433f3810
Merge pull request #305 from ezegomez/master
...
Fix unittest in i386
2015-06-02 10:53:03 -07:00
Feng Xiao
d1281cdb69
Merge pull request #451 from jcanizales/document-why-podspec-is-on-root
...
Document why the podspec is on the root of the repo
2015-06-02 10:30:26 -07:00
Michael Lumish
8cbb4cf1b3
Merge pull request #1 from jcanizales/podspec_fix
...
A few corrections to the proposed podspec
2015-06-02 08:34:43 -07:00
Jorge Canizales
9d6b946a9e
Reorder fields so it looks like exclude_files affects preserve_paths
2015-06-02 01:03:03 -07:00
Jorge Canizales
e55a25c086
Better documentation
2015-06-02 00:42:40 -07:00
Jorge Canizales
d377c17b34
Remove backslashes after commas
2015-06-02 00:42:40 -07:00
Jorge Canizales
6afcaf0f2d
Remove struct.proto too (redefines GPBValue)
2015-06-02 00:42:40 -07:00
Jorge Canizales
153d61a1a1
s/pobjc/pbobjc and simplify a bit the podspec
2015-06-02 00:42:40 -07:00
Jorge Canizales
249483e93c
Document why the podspec is on the root of the repo
2015-06-01 19:55:27 -07:00
murgatroid99
bba6d76daa
Ignored files that cause build errors
2015-06-01 17:21:02 -07:00
Jan Tattermusch
ad174e0391
Merge pull request #441 from anandolee/master
...
Change the C# enum generator inherit from primitive generator
2015-06-01 12:31:18 -07:00
murgatroid99
df4012ad51
Add remaining not-already-imported well known types files to podspec
2015-06-01 11:31:11 -07:00
Feng Xiao
4333edb340
Add cmake support.
2015-05-31 02:28:34 -07:00
Feng Xiao
93d6838ab5
Call copy() only if there is something to copy.
...
RepeatedField::begin()/end() will return NULL when the content is empty.
Passing these NULL values to std::copy() will result in runtime complains
from some compilers (e.g., vs2010).
2015-05-31 00:15:55 -07:00
Feng Xiao
5a9be2c6f6
Fix MapAllocator::destroy() bug.
...
destroy() should always call the destructor because the caller may rely on
the destructor to do clean-ups.
2015-05-31 00:14:23 -07:00
Jie Luo
a21a2cf7d3
Change the C# enum generator inherit from primitive generator
2015-05-29 18:07:18 -07:00
Jie Luo
802e1848ad
Merge pull request #404 from anandolee/master
...
Add oneof support for c#
2015-05-29 17:19:46 -07:00
Bo Yang
252daef02b
Add distributionManagement explicitly to prevent maven from using
...
default configuration. In default configuration, maven needs webdav for
deployment, which cannot be found in central repository.
2015-05-29 16:32:04 -07:00
Jie Luo
f7b417ddfe
Add oneof support for C#
2015-05-29 13:29:30 -07:00
Bo Yang
e107e2d68e
Update version number to 3.0.0-alpha-4
2015-05-29 11:00:57 -07:00
Bo Yang
3e2c8a5dd7
Modify change log
2015-05-28 14:52:44 -07:00
unknown
ca1c252923
Fixes on visual studio 2008
2015-05-27 17:33:10 -07:00
Feng Xiao
b11d6fe515
Replace "\\" with "/" for windows path names.
2015-05-26 21:33:46 -07:00
TeBoring
9250fbaead
In std11, on mac, operator new doesn't take right reference.
2015-05-26 15:50:06 -07:00
Bo Yang
8908cf16fe
Add 3.0.0-alpha-3 release to CHANGES.txt
2015-05-26 14:38:17 -07:00
Paul Yang
850fe8bfc6
Merge pull request #430 from xfxyjwf/std11_fix
...
Make MapAllocator work with C++11.
2015-05-26 14:38:10 -07:00
Feng Xiao
bdd105d978
Make MapAllocator work with C++11.
...
Change-Id: I0e1d9e248403631cb57ebed5231e85d19b9bb3df
2015-05-26 14:34:53 -07:00
Paul Yang
1b540d5729
Merge pull request #429 from xfxyjwf/std11_fix
...
Remove std::is_trivially_default_constructible.
2015-05-26 14:24:59 -07:00