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

Function constructEmbeddedStructPointerCodec

json/codec.go:531–536  ·  view source on GitHub ↗
(t reflect.Type, unexported bool, offset uintptr, field codec)

Source from the content-addressed store, hash-verified

529}
530
531func constructEmbeddedStructPointerCodec(t reflect.Type, unexported bool, offset uintptr, field codec) codec {
532 return codec{
533 encode: constructEmbeddedStructPointerEncodeFunc(t, unexported, offset, field.encode),
534 decode: constructEmbeddedStructPointerDecodeFunc(t, unexported, offset, field.decode),
535 }
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) {

Callers 1

appendStructFieldsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…