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

Function prefix

json/codec.go:1035–1040  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

1033}
1034
1035func prefix(b []byte) string {
1036 if len(b) < 32 {
1037 return string(b)
1038 }
1039 return string(b[:32]) + "..."
1040}
1041
1042func intStringsAreSorted(i0, i1 int64) bool {
1043 var b0, b1 [32]byte

Callers 4

unmarshalTypeErrorFunction · 0.85
unmarshalOverflowFunction · 0.85
syntaxErrorFunction · 0.85
decodeFromStringToIntMethod · 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…