(b []byte, p unsafe.Pointer, flags flags)
| 19 | } |
| 20 | |
| 21 | func encodeInt64(b []byte, p unsafe.Pointer, flags flags) (int, error) { |
| 22 | if p != nil { |
| 23 | if v := *(*int64)(p); v != 0 || flags.has(wantzero) { |
| 24 | return encodeVarint(b, flags.uint64(v)) |
| 25 | } |
| 26 | } |
| 27 | return 0, nil |
| 28 | } |
| 29 | |
| 30 | func decodeInt64(b []byte, p unsafe.Pointer, flags flags) (int, error) { |
| 31 | v, n, err := decodeVarint(b) |
nothing calls this directly
no test coverage detected
searching dependent graphs…