Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brimdata/super
/ Write
Method
Write
sbuf/array.go:40–43 ·
view source on GitHub ↗
(r super.Value)
Source
from the content-addressed store, hash-verified
38
}
39
40
func
(a *Array) Write(r super.Value) error {
41
a.Append(r.Copy())
42
return
nil
43
}
44
45
// Read returns removes the first element of the Array and returns it,
46
// or it returns nil if the Array is empty.
Callers
1
TestArrayWriteCopiesValueBytes
Function · 0.95
Calls
2
Append
Method · 0.95
Copy
Method · 0.45
Tested by
1
TestArrayWriteCopiesValueBytes
Function · 0.76