MCPcopy Index your code
hub / github.com/prometheus/prometheus / yoloString

Function yoloString

model/textparse/promparse.go:521–523  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

519}
520
521func yoloString(b []byte) string {
522 return unsafe.String(unsafe.SliceData(b), len(b))
523}
524
525func yoloBytes(b string) []byte {
526 return unsafe.Slice(unsafe.StringData(b), len(b))

Callers 6

NextMethod · 0.70
parseMetricSuffixMethod · 0.70
NextMethod · 0.70
parseCommentMethod · 0.70
parseSeriesEndOfLineMethod · 0.70
getFloatValueMethod · 0.70

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…