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

Function NewValueStack

vm/neovm/value_stack.go:37–42  ·  view source on GitHub ↗
(limit int64)

Source from the content-addressed store, hash-verified

35}
36
37func NewValueStack(limit int64) *ValueStack {
38 return &ValueStack{
39 data: make([]types.VmValue, 0, initialStackCap),
40 limit: limit,
41 }
42}
43
44func (self *ValueStack) Count() int {
45 return len(self.data)

Callers 6

NewExecutorFunction · 0.85
TestValueStack_CountFunction · 0.85
TestValueStack_PopFunction · 0.85
TestValueStack_PeekFunction · 0.85
TestValueStack_SwapFunction · 0.85
TestValueStack_CopyToFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestValueStack_CountFunction · 0.68
TestValueStack_PopFunction · 0.68
TestValueStack_PeekFunction · 0.68
TestValueStack_SwapFunction · 0.68
TestValueStack_CopyToFunction · 0.68