core/vm: re-add doc

This commit is contained in:
MariusVanDerWijden 2025-10-30 12:51:50 +01:00
parent 7e30dfb18c
commit 8c5a76e541

View file

@ -76,6 +76,7 @@ func (m *Memory) Set32(offset uint64, val *uint256.Int) {
val.PutUint256(m.store[offset:]) val.PutUint256(m.store[offset:])
} }
// Resize resizes the memory to size
func (m *Memory) Resize(size uint64) { func (m *Memory) Resize(size uint64) {
if uint64(m.Len()) < size { if uint64(m.Len()) < size {
if uint64(cap(m.store)) > size { if uint64(cap(m.store)) > size {