stack

package
v3.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package stack implements a growable uint64 stack

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

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

Stack define stack type

func (*Stack) Get

func (s *Stack) Get(i int) uint64

Get define get instruction

func (*Stack) Len

func (s *Stack) Len() int

Len define len instruction

func (*Stack) Pop

func (s *Stack) Pop() uint64

Pop define pop instruction

func (*Stack) Push

func (s *Stack) Push(b uint64)

Push define push instruction

func (*Stack) Set

func (s *Stack) Set(i int, v uint64)

Set define set instruction

func (*Stack) SetTop

func (s *Stack) SetTop(v uint64)

SetTop define settop instruction

func (*Stack) Top

func (s *Stack) Top() uint64

Top define top instruction

Jump to

Keyboard shortcuts

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