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

Method Get

pkg/col/coldata/bytes.go:181–183  ·  view source on GitHub ↗

Get returns the ith []byte in Bytes. Note that the returned byte slice is unsafe for reuse if any write operation happens. If the returned value is then Set() into another Bytes, then use Bytes.Copy instead. Note this function call is mostly inlined except in a handful of very large generated func

(i int)

Source from the content-addressed store, hash-verified

179// Note this function call is mostly inlined except in a handful of very large
180// generated functions, so we can't add the gcassert directive for it.
181func (b *Bytes) Get(i int) []byte {
182 return b.elements[i].get(b)
183}
184
185// Set sets the ith []byte in Bytes.
186//

Callers 3

AbbreviatedMethod · 0.95
StringMethod · 0.95
SerializeMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected