mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
core/vm: re-add doc
This commit is contained in:
parent
7e30dfb18c
commit
8c5a76e541
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue