MCPcopy 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
56func (st *Stack) len() int {
57 return len(st.data)
58}
59
60func (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

swapMethod · 0.95
dupMethod · 0.95
peekMethod · 0.95
BackMethod · 0.95
requireMethod · 0.95
gasExpFunction · 0.80
getMethod · 0.80
getZeroMethod · 0.80
CaptureStateMethod · 0.80
makeStackFuncFunction · 0.80
testTwoOperandOpFunction · 0.80

Calls

no outgoing calls

Tested by 1

testTwoOperandOpFunction · 0.64