 Documentation
      ¶
      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.
 Click to show internal directories. 
   Click to hide internal directories.