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

Function appendCoerceInvalidUTF8

json/parse.go:566–574  ·  view source on GitHub ↗
(b []byte, s []byte)

Source from the content-addressed store, hash-verified

564}
565
566func appendCoerceInvalidUTF8(b []byte, s []byte) []byte {
567 c := [4]byte{}
568
569 for _, r := range string(s) {
570 b = append(b, c[:utf8.EncodeRune(c[:], r)]...)
571 }
572
573 return b
574}
575
576func (d decoder) parseObject(b []byte) ([]byte, []byte, Kind, error) {
577 if len(b) < 2 {

Callers 1

parseStringUnquoteMethod · 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…