MCPcopy Create free account
hub / github.com/CPChain/chain / NewMemory

Function NewMemory

core/vm/memory.go:33–35  ·  view source on GitHub ↗

NewMemory returns a new memory memory model.

()

Source from the content-addressed store, hash-verified

31
32// NewMemory returns a new memory memory model.
33func NewMemory() *Memory {
34 return &Memory{}
35}
36
37// Set sets offset + size to value
38func (m *Memory) Set(offset, size uint64, value []byte) {

Callers 4

TestStoreCaptureFunction · 0.85
RunMethod · 0.85
TestOpMstoreFunction · 0.85
BenchmarkOpMstoreFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestStoreCaptureFunction · 0.68
TestOpMstoreFunction · 0.68
BenchmarkOpMstoreFunction · 0.68