diffstorage

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainDiffStorage

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

Memory storage for binary diffs

func NewChainDiffStorage

func NewChainDiffStorage(diffFn func(w io.Writer, old, new []byte) error, applyFn func(in, out []byte, diff []byte, reverse bool) ([]byte, error)) *ChainDiffStorage

func (*ChainDiffStorage) Delete

func (c *ChainDiffStorage) Delete(root libcommon.Hash)

func (*ChainDiffStorage) Get

func (c *ChainDiffStorage) Get(root libcommon.Hash) ([]byte, error)

func (*ChainDiffStorage) Insert

func (c *ChainDiffStorage) Insert(root, parent libcommon.Hash, prevDump, dump []byte, isDump bool) error

Jump to

Keyboard shortcuts

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