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

Function bytesToString

pkg/parquetquery/intern/intern.go:58–58  ·  view source on GitHub ↗

bytesToString converts a byte slice to a string. String shares the memory with the byte slice. The byte slice should not be modified after call.

(b []byte)

Source from the content-addressed store, hash-verified

56// String shares the memory with the byte slice.
57// The byte slice should not be modified after call.
58func bytesToString(b []byte) string { return unsafe.String(unsafe.SliceData(b), len(b)) }
59
60// addressOfBytes returns the address of the first byte in data.
61// The data should not be modified after call.

Callers 1

internBytesMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected