MCPcopy Create free account
hub / github.com/brimdata/super / Copy

Method Copy

value.go:248–253  ·  view source on GitHub ↗

Copy returns a copy of v that shares no storage.

()

Source from the content-addressed store, hash-verified

246
247// Copy returns a copy of v that shares no storage.
248func (v Value) Copy() Value {
249 if _, ok := v.native(); ok {
250 return v
251 }
252 return NewValue(v.Type(), bytes.Clone(v.bytes()))
253}
254
255// CopyFrom copies from into v, reusing v's storage if possible.
256func (v *Value) CopyFrom(from Value) {

Callers 15

updateMethod · 0.95
handleBranchLoadFunction · 0.45
updateMethod · 0.45
AddAsMethod · 0.45
PutFunction · 0.45
PutIfNotExistsMethod · 0.45
TestWriteSimpleFunction · 0.45
decodeAnyMethod · 0.45
decodeArrayMethod · 0.45
MaterializeFunction · 0.45
WriteMethod · 0.45
ProgressMethod · 0.45

Calls 5

nativeMethod · 0.95
TypeMethod · 0.95
bytesMethod · 0.95
NewValueFunction · 0.85
CloneMethod · 0.65

Tested by 4

TestWriteSimpleFunction · 0.36
PullMethod · 0.36
TestPeekerFunction · 0.36
TestPreprocessFunction · 0.36