Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CPChain/chain
/ len
Method
len
core/vm/stack.go:56–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
54
}
55
56
func
(st *Stack) len() int {
57
return
len(st.data)
58
}
59
60
func
(st *Stack) swap(n int) {
61
st.data[st.len()-n], st.data[st.len()-1] = st.data[st.len()-1], st.data[st.len()-n]
Callers
11
swap
Method · 0.95
dup
Method · 0.95
peek
Method · 0.95
Back
Method · 0.95
require
Method · 0.95
gasExp
Function · 0.80
get
Method · 0.80
getZero
Method · 0.80
CaptureState
Method · 0.80
makeStackFunc
Function · 0.80
testTwoOperandOp
Function · 0.80
Calls
no outgoing calls
Tested by
1
testTwoOperandOp
Function · 0.64