(b []byte, s []byte)
| 564 | } |
| 565 | |
| 566 | func 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 | |
| 576 | func (d decoder) parseObject(b []byte) ([]byte, []byte, Kind, error) { |
| 577 | if len(b) < 2 { |
no outgoing calls
no test coverage detected
searching dependent graphs…