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