(i int64)
| 30 | } |
| 31 | |
| 32 | func (wb *writeBuffer) writeInt64(i int64) { |
| 33 | binary.BigEndian.PutUint64(wb.b[:8], uint64(i)) |
| 34 | wb.Write(wb.b[:8]) |
| 35 | } |
| 36 | |
| 37 | func (wb *writeBuffer) writeVarInt(i int64) { |
| 38 | u := uint64((i << 1) ^ (i >> 63)) |
no test coverage detected