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