scrambler

package
v0.0.0-...-37151b8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxInt = math.MaxUint32

Variables

This section is empty.

Functions

func HashCode

func HashCode(str string) int

Types

type ConstructorOpts

type ConstructorOpts struct {
	Maximum   uint32
	Seed      int
	OutOffset int
	Loop      bool
}

type Scrambler

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

func New

func New(opts ConstructorOpts) (*Scrambler, error)

func (*Scrambler) All

func (s *Scrambler) All() []uint32

func (*Scrambler) Clone

func (s *Scrambler) Clone() *Scrambler

func (*Scrambler) Current

func (s *Scrambler) Current() uint32

func (*Scrambler) CurrentPos

func (s *Scrambler) CurrentPos() int

func (*Scrambler) Lookahead

func (s *Scrambler) Lookahead(n uint32) []uint32

func (*Scrambler) Lookbehind

func (s *Scrambler) Lookbehind(n uint32) []uint32

func (*Scrambler) Next

func (s *Scrambler) Next() uint32

func (*Scrambler) Prev

func (s *Scrambler) Prev() uint32

func (*Scrambler) Reset

func (s *Scrambler) Reset()

Jump to

Keyboard shortcuts

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