(b []byte, p unsafe.Pointer)
| 143 | } |
| 144 | |
| 145 | func (d decoder) decodeUintptr(b []byte, p unsafe.Pointer) ([]byte, error) { |
| 146 | if hasNullPrefix(b) { |
| 147 | return b[4:], nil |
| 148 | } |
| 149 | |
| 150 | v, r, err := d.parseUint(b, uintptrType) |
| 151 | if err != nil { |
| 152 | return r, err |
| 153 | } |
| 154 | |
| 155 | *(*uintptr)(p) = uintptr(v) |
| 156 | return r, nil |
| 157 | } |
| 158 | |
| 159 | func (d decoder) decodeUint8(b []byte, p unsafe.Pointer) ([]byte, error) { |
| 160 | if hasNullPrefix(b) { |
nothing calls this directly
no test coverage detected