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

Function NewArrayValue

vm/neovm/types/array_value.go:35–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33const initArraySize = 16
34
35func NewArrayValue() *ArrayValue {
36 return &ArrayValue{Data: make([]VmValue, 0, initArraySize)}
37}
38
39func (self *ArrayValue) Append(item VmValue) error {
40 if len(self.Data) >= constants.MAX_ARRAY_SIZE {

Callers 11

newVmValueFunction · 0.92
ExecuteOpMethod · 0.92
PushAsArrayMethod · 0.92
buildArrayFunction · 0.85
TestSerializeFunction · 0.85
TestVmValue_EqualsFunction · 0.85
TestNewArrayFunction · 0.85
TestArrayValue_RemoveAtFunction · 0.85

Calls

no outgoing calls

Tested by 9

newVmValueFunction · 0.74
buildArrayFunction · 0.68
TestSerializeFunction · 0.68
TestVmValue_EqualsFunction · 0.68
TestNewArrayFunction · 0.68
TestArrayValue_RemoveAtFunction · 0.68