(b []byte, p unsafe.Pointer)
| 193 | } |
| 194 | |
| 195 | func (d decoder) decodeUint32(b []byte, p unsafe.Pointer) ([]byte, error) { |
| 196 | if hasNullPrefix(b) { |
| 197 | return b[4:], nil |
| 198 | } |
| 199 | |
| 200 | v, r, err := d.parseUint(b, uint32Type) |
| 201 | if err != nil { |
| 202 | return r, err |
| 203 | } |
| 204 | |
| 205 | if v > math.MaxUint32 { |
| 206 | return r, unmarshalOverflow(b[:len(b)-len(r)], uint32Type) |
| 207 | } |
| 208 | |
| 209 | *(*uint32)(p) = uint32(v) |
| 210 | return r, nil |
| 211 | } |
| 212 | |
| 213 | func (d decoder) decodeUint64(b []byte, p unsafe.Pointer) ([]byte, error) { |
| 214 | if hasNullPrefix(b) { |
nothing calls this directly
no test coverage detected