MCPcopy Create free account
hub / github.com/segmentio/encoding / decodeInto

Function decodeInto

json/decode.go:1526–1534  ·  view source on GitHub ↗
(dest *any, b []byte, d decoder, fn decodeFunc)

Source from the content-addressed store, hash-verified

1524}
1525
1526func decodeInto[T any](dest *any, b []byte, d decoder, fn decodeFunc) ([]byte, error) {
1527 var v T
1528 rem, err := fn(d, b, unsafe.Pointer(&v))
1529 if err == nil {
1530 *dest = v
1531 }
1532
1533 return rem, err
1534}

Callers 1

decodeDynamicNumberMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…