Memory

class eth.vm.memory.Memory
copy(destination: int, source: int, length: int) None

Copy bytes of memory with size length from source to destination

extend(start_position: int, size: int) None

Extend the memory from the given start_position to the provided size.

read(start_position: int, size: int) memoryview

Return a view into the memory

read_bytes(start_position: int, size: int) bytes

Read a value from memory and return a fresh bytes instance

write(start_position: int, size: int, value: bytes) None

Write value into memory.

logger = <Logger eth.vm.memory.Memory (WARNING)>