Hashes

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hashes

type Hashes struct {
	sync.Mutex
	Length  byte
	Byteses map[int32][]byte
}

func NewHashes

func NewHashes() *Hashes

func (*Hashes) Decode

func (b *Hashes) Decode(by []byte) (out []byte)

func (*Hashes) DecodeOne

func (b *Hashes) DecodeOne(by []byte) *Hashes

func (*Hashes) Encode

func (b *Hashes) Encode() (out []byte)

func (*Hashes) Get

func (b *Hashes) Get() (out map[int32]*chainhash.Hash)

func (*Hashes) Put

func (b *Hashes) Put(in map[int32]*chainhash.Hash) *Hashes

Jump to

Keyboard shortcuts

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