MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / String

Method String

pkg/col/coldata/bytes.go:531–539  ·  view source on GitHub ↗

String is used for debugging purposes.

()

Source from the content-addressed store, hash-verified

529
530// String is used for debugging purposes.
531func (b *Bytes) String() string {
532 var builder strings.Builder
533 for i := range b.elements {
534 builder.WriteString(
535 fmt.Sprintf("%d: %v\n", i, b.Get(i)),
536 )
537 }
538 return builder.String()
539}
540
541// elementsAsBytes unsafely casts b.elements[:n] to []byte.
542func (b *Bytes) elementsAsBytes(n int) []byte {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected