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

Method Push

vm/neovm/value_stack.go:95–101  ·  view source on GitHub ↗
(t types.VmValue)

Source from the content-addressed store, hash-verified

93}
94
95func (self *ValueStack) Push(t types.VmValue) error {
96 if int64(len(self.data)) >= self.limit {
97 return errors.ERR_OVER_STACK_LEN
98 }
99 self.data = append(self.data, t)
100 return nil
101}
102
103func (self *ValueStack) PushMany(vals ...types.VmValue) error {
104 if int64(len(self.data)+len(vals)) > self.limit {

Callers 15

PushBoolMethod · 0.95
PushInt64Method · 0.95
PushUint64Method · 0.95
PushUint32Method · 0.95
PushBytesMethod · 0.95
PushAsInteropValueMethod · 0.95
TestValueStack_CountFunction · 0.95
TestValueStack_PopFunction · 0.95
TestValueStack_PeekFunction · 0.95
TestValueStack_SwapFunction · 0.95
TestValueStack_CopyToFunction · 0.95
checkAltStackOpCodeNewFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestValueStack_CountFunction · 0.76
TestValueStack_PopFunction · 0.76
TestValueStack_PeekFunction · 0.76
TestValueStack_SwapFunction · 0.76
TestValueStack_CopyToFunction · 0.76
checkAltStackOpCodeNewFunction · 0.36
TestVerifySigFunction · 0.36