blocksutil

package
v0.4.9-rc2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package blocksutil provides utility functions for working with Blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockGenerator

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

BlockGenerator generates BasicBlocks on demand. For each instace of BlockGenerator, each new block is different from the previous, although two different instances will produce the same.

func NewBlockGenerator

func NewBlockGenerator() BlockGenerator

NewBlockGenerator returns an object capable of producing blocks.

func (*BlockGenerator) Blocks

func (bg *BlockGenerator) Blocks(n int) []*blocks.BasicBlock

Blocks generates as many BasicBlocks as specified by n.

func (*BlockGenerator) Next

func (bg *BlockGenerator) Next() *blocks.BasicBlock

Next generates a new BasicBlock.

Jump to

Keyboard shortcuts

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