Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/copernet/copernicus
/ Copy
Method
Copy
util/stack.go:122–129 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
120
}
121
122
func
(s *Stack) Copy() *Stack {
123
bak := make([]
interface
{}, s.Size())
124
copy(bak, s.array)
125
126
return
&Stack{
127
array: bak,
128
}
129
}
130
131
func
NewStack() *Stack {
132
array := make([]
interface
{}, 0)
Callers
4
VerifyScript
Function · 0.95
TestStack
Function · 0.95
CopyFile
Function · 0.80
loadAddr
Function · 0.80
Calls
1
Size
Method · 0.95
Tested by
2
TestStack
Function · 0.76
loadAddr
Function · 0.64