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

Method decodeInt64

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

Source from the content-addressed store, hash-verified

115}
116
117func (d decoder) decodeInt64(b []byte, p unsafe.Pointer) ([]byte, error) {
118 if hasNullPrefix(b) {
119 return b[4:], nil
120 }
121
122 v, r, err := d.parseInt(b, int64Type)
123 if err != nil {
124 return r, err
125 }
126
127 *(*int64)(p) = v
128 return r, nil
129}
130
131func (d decoder) decodeUint(b []byte, p unsafe.Pointer) ([]byte, error) {
132 if hasNullPrefix(b) {

Callers

nothing calls this directly

Calls 2

parseIntMethod · 0.95
hasNullPrefixFunction · 0.85

Tested by

no test coverage detected