MCPcopy
hub / github.com/grafana/tempo / unsafeToString

Function unsafeToString

tempodb/encoding/vparquet3/block_traceql.go:2923–2928  ·  view source on GitHub ↗

unsafeToString casts a byte slice to a string w/o allocating

(b []byte)

Source from the content-addressed store, hash-verified

2921
2922// unsafeToString casts a byte slice to a string w/o allocating
2923func unsafeToString(b []byte) string {
2924 if len(b) == 0 {
2925 return ""
2926 }
2927 return unsafe.String(unsafe.SliceData(b), len(b))
2928}

Callers 8

KeepGroupMethod · 0.70
mapSpanAttrFunction · 0.70
mapResourceAttrFunction · 0.70
mapTraceAttrFunction · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70
KeepGroupMethod · 0.70

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected