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

Method decodeUint64

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

Source from the content-addressed store, hash-verified

211}
212
213func (d decoder) decodeUint64(b []byte, p unsafe.Pointer) ([]byte, error) {
214 if hasNullPrefix(b) {
215 return b[4:], nil
216 }
217
218 v, r, err := d.parseUint(b, uint64Type)
219 if err != nil {
220 return r, err
221 }
222
223 *(*uint64)(p) = v
224 return r, nil
225}
226
227func (d decoder) decodeFloat32(b []byte, p unsafe.Pointer) ([]byte, error) {
228 if hasNullPrefix(b) {

Callers

nothing calls this directly

Calls 2

parseUintMethod · 0.95
hasNullPrefixFunction · 0.85

Tested by

no test coverage detected