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

Function constructEmbeddedStructPointerEncodeFunc

json/codec.go:538–542  ·  view source on GitHub ↗
(t reflect.Type, unexported bool, offset uintptr, encode encodeFunc)

Source from the content-addressed store, hash-verified

536}
537
538func constructEmbeddedStructPointerEncodeFunc(t reflect.Type, unexported bool, offset uintptr, encode encodeFunc) encodeFunc {
539 return func(e encoder, b []byte, p unsafe.Pointer) ([]byte, error) {
540 return e.encodeEmbeddedStructPointer(b, p, t, unexported, offset, encode)
541 }
542}
543
544func constructEmbeddedStructPointerDecodeFunc(t reflect.Type, unexported bool, offset uintptr, decode decodeFunc) decodeFunc {
545 return func(d decoder, b []byte, p unsafe.Pointer) ([]byte, error) {

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…