| commit | 889ae49d31c92b22cb38dc6139e19608bb0320e0 | [log] [tgz] |
|---|---|---|
| author | David Symonds <dsymonds@golang.org> | Mon Mar 23 09:48:33 2015 +1100 |
| committer | David Symonds <dsymonds@golang.org> | Mon Mar 23 09:48:33 2015 +1100 |
| tree | 3a2976144134c2ae6d4b8634e0bd86816215f992 | |
| parent | de8c5232265aad60a608aae7dbcce17190a3d9a7 [diff] |
Fix encoding and sizing of empty byte slices in proto3 maps. Empty byte slices were being skipped, since that's the correct behaviour when it is a standalone bytes field, but it's the wrong behaviour when it is the value of a map field, which should always have its key and value encoded. Fixes #20.