MCPcopy Create free account
hub / github.com/DNAProject/DNA / Pop

Method Pop

vm/neovm/value_stack.go:128–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func (self *ValueStack) Pop() (value types.VmValue, err error) {
129 length := len(self.data)
130 if length == 0 {
131 err = errors.ERR_INDEX_OUT_OF_BOUND
132 return
133 }
134 value = self.data[length-1]
135 self.data = self.data[:length-1]
136 return
137}
138
139func (self *ValueStack) PopPair() (left, right types.VmValue, err error) {
140 right, err = self.Pop()

Callers 15

PopAsBoolMethod · 0.95
PopAsInt64Method · 0.95
PopAsIntValueMethod · 0.95
PopAsBytesMethod · 0.95
PopAsArrayMethod · 0.95
PopAsMapMethod · 0.95
PopAsStructMethod · 0.95
PopAsInteropValueMethod · 0.95
TestValueStack_SwapFunction · 0.95
PopPairMethod · 0.95
PopTripleMethod · 0.95
checkAltStackOpCodeNewFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestValueStack_SwapFunction · 0.76
checkAltStackOpCodeNewFunction · 0.36