| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
| |
Bug: 20636336
Change-Id: I303d712967f9885f7c3082d00f961f8ab93a6aed
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a MessageNano containing a String is serialized into a buffer that
is too small to contain it, and the buffer's boundary happens to be
where the string field's length delimiting varint is serialized,
and the string's length and 3*length have the same length when
encoded as a varint, an IllegalArgumentException is thrown rather than
an OutOfSpaceException.
Github issue: https://github.com/google/protobuf/issues/292
Change-Id: If478d68cf15bfd0662252d008e42b2bf1ff1c75e
|
|
|
|
| |
Change-Id: Ie2a9e36276ac35e10b3f8d379b5742d50a0374e9
|
|
|
|
|
|
|
| |
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: Charles Munger <clm@google.com>
|
| |
|
| |
|
| |
|
| |
|
|
|