MCPcopy Index your code
hub / github.com/segmentio/encoding / decodeUintptr

Method decodeUintptr

json/decode.go:145–157  ·  view source on GitHub ↗
(b []byte, p unsafe.Pointer)

Source from the content-addressed store, hash-verified

143}
144
145func (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
159func (d decoder) decodeUint8(b []byte, p unsafe.Pointer) ([]byte, error) {
160 if hasNullPrefix(b) {

Callers

nothing calls this directly

Calls 2

parseUintMethod · 0.95
hasNullPrefixFunction · 0.85

Tested by

no test coverage detected