data

package
v1.0.1-rc6-dev-review1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Id2Hash  utils.H2Hash
	IdDirtys utils.Dirtys
	Hash2Pkg map[c_type.Uint256]localdb.ZPkg
}

func NewData

func NewData() (ret *Data)

func (*Data) Add

func (self *Data) Add(pkg *localdb.ZPkg)

func (*Data) Clear

func (self *Data) Clear()

func (*Data) GetHashes

func (self *Data) GetHashes() (ret []c_type.Uint256)

func (*Data) GetPkgByHash

func (self *Data) GetPkgByHash(tr tri.Tri, hash *c_type.Uint256) (pg *localdb.ZPkg)

func (*Data) GetPkgById

func (self *Data) GetPkgById(tr tri.Tri, id *c_type.Uint256) (pg *localdb.ZPkg)

func (*Data) RecordState

func (self *Data) RecordState(putter serodb.Putter, hash *c_type.Uint256)

func (*Data) SaveState

func (self *Data) SaveState(tr tri.Tri)

Jump to

Keyboard shortcuts

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