1. 28 Apr, 2015 2 commits
    • Charles Munger's avatar
      Optimize measurement and serialization of nano protos. · 54511f70
      Charles Munger authored
      Measuring the serialized size of nano protos is now a zero-alloc operation, and serializing a proto now allocates no memory (other than the output buffer) instead of O(total length of strings).
      
      Change-Id: Id5e2ac3bdc4ac56c0bf13d725472da3a00c9baec
      Signed-off-by: 's avatarCharles Munger <clm@google.com>
      54511f70
    • Brian Duff's avatar
      Fix bug with large extension field numbers. · ec2f2445
      Brian Duff authored
      Previously, extensions with field numbers greater than 268435455 would
      result in a compile time error in generated code that looks something
      like this:
      
      Foo.java:3178: error: integer number too large: 3346754610
                      3346754610);
      
      This is because we were trying to represent the tag number (an
      unsigned int) using a java int constant, but java int constants are
      signed, and can't exceed Integer.MAX_VALUE.
      
      Fixed by declaring it as a long instead, and casting it down to an
      int in the implementation. This is safe, because the tag value always
      fits in 32 bis.
      
      Change-Id: If2017bacb4e20af667eaeaf9b65ddc2c30a7709f
      ec2f2445
  2. 21 Apr, 2015 1 commit
  3. 20 Apr, 2015 2 commits
  4. 17 Apr, 2015 1 commit
    • Kun Zhang's avatar
      A few fix-ups. · 90a7ed6f
      Kun Zhang authored
      1. make google/protobuf/stubs/pbconfig.h before making protoc, otherwise it
      won't build a freshly checked-out code.
      2. Document the build environments that have been tested to work.
      3. Add support for MINGW64
      90a7ed6f
  5. 15 Apr, 2015 1 commit
  6. 13 Apr, 2015 3 commits
  7. 11 Apr, 2015 1 commit
  8. 10 Apr, 2015 8 commits
  9. 09 Apr, 2015 2 commits
  10. 08 Apr, 2015 9 commits
  11. 07 Apr, 2015 1 commit
  12. 02 Apr, 2015 9 commits