Documentation ¶
Overview ¶
Copyright 2023 The astranet Authors This file is part of the astranet library.
The astranet library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The astranet library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the astranet library. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func ReturnNormalStack(s *Stack)
- func ReturnRStack(rs *ReturnStack)
- type ReturnStack
- type Stack
- func (st *Stack) Back(n int) *uint256.Int
- func (st *Stack) Cap() int
- func (st *Stack) Dup(n int)
- func (st *Stack) Len() int
- func (st *Stack) Peek() *uint256.Int
- func (st *Stack) Pop() (ret uint256.Int)
- func (st *Stack) Print()
- func (st *Stack) Push(d *uint256.Int)
- func (st *Stack) PushN(ds ...uint256.Int)
- func (st *Stack) Reset()
- func (st *Stack) Swap(n int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReturnNormalStack ¶
func ReturnNormalStack(s *Stack)
func ReturnRStack ¶
func ReturnRStack(rs *ReturnStack)
Types ¶
type ReturnStack ¶
type ReturnStack struct {
// contains filtered or unexported fields
}
ReturnStack is an object for basic return stack operations.
func NewReturnStack ¶
func NewReturnStack() *ReturnStack
func (*ReturnStack) Data ¶
func (st *ReturnStack) Data() []uint32
func (*ReturnStack) Pop ¶
func (st *ReturnStack) Pop() (ret uint32)
A uint32 is sufficient as for code below 4.2G
func (*ReturnStack) Push ¶
func (st *ReturnStack) Push(d uint32)