(i int64)
| 169 | } |
| 170 | |
| 171 | func EncodeInt(i int64) scode.Bytes { |
| 172 | var b [8]byte |
| 173 | n := scode.EncodeCountedVarint(b[:], i) |
| 174 | return b[:n] |
| 175 | } |
| 176 | |
| 177 | func AppendInt(bytes scode.Bytes, i int64) scode.Bytes { |
| 178 | return scode.AppendCountedVarint(bytes, i) |