memory

package
v2.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

func New

func New() *Memory

func (*Memory) All

func (m *Memory) All() []byte

func (*Memory) Copy

func (m *Memory) Copy(offset uint64, length uint64) ([]byte, error)

func (*Memory) Malloc

func (m *Memory) Malloc(offset uint64, size uint64) []byte

func (*Memory) Map

func (m *Memory) Map(offset uint64, length uint64) ([]byte, error)

func (*Memory) Set

func (m *Memory) Set(idx uint64, data byte) error

func (*Memory) Size

func (m *Memory) Size() int64

func (*Memory) Store

func (m *Memory) Store(offset uint64, data []byte) error

func (*Memory) StoreNBytes

func (m *Memory) StoreNBytes(offset uint64, n uint64, data []byte) error

func (*Memory) WillIncrease

func (m *Memory) WillIncrease(offset *evmutils.Int, size *evmutils.Int) (o uint64, s uint64, i uint64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL