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

Function encodeKeyFragment

json/codec.go:742–749  ·  view source on GitHub ↗
(s string, flags AppendFlags)

Source from the content-addressed store, hash-verified

740}
741
742func encodeKeyFragment(s string, flags AppendFlags) string {
743 b := make([]byte, 1, len(s)+4)
744 b[0] = ','
745 e := encoder{flags: flags}
746 b, _ = e.encodeString(b, unsafe.Pointer(&s))
747 b = append(b, ':')
748 return *(*string)(unsafe.Pointer(&b))
749}
750
751func constructPointerCodec(t reflect.Type, seen map[reflect.Type]*structType) codec {
752 e := t.Elem()

Callers 1

appendStructFieldsFunction · 0.85

Calls 1

encodeStringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…