(b *buffer, tag int, x int64)
| 133 | } |
| 134 | |
| 135 | func encodeInt64Opt(b *buffer, tag int, x int64) { |
| 136 | if x == 0 { |
| 137 | return |
| 138 | } |
| 139 | encodeInt64(b, tag, x) |
| 140 | } |
| 141 | |
| 142 | func encodeString(b *buffer, tag int, x string) { |
| 143 | encodeLength(b, tag, len(x)) |