dgrblock

package
v0.0.0-...-3e596e0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0, 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 DataSource

type DataSource struct {
	chunker.Chunk // critically *NOT* a reference, so that an empty DataSource{} is usable on its own
	Content       *zcpstring.ZcpString
	// contains filtered or unexported fields
}
type Header struct {
	// contains filtered or unexported fields
}

func WrapCid

func WrapCid(cid []byte, blockSize int, dagSize, payloadSize uint64) *Header

func (*Header) Cid

func (h *Header) Cid() []byte

func (*Header) SizeBlock

func (h *Header) SizeBlock() int

func (*Header) SizeCumulativeDag

func (h *Header) SizeCumulativeDag() uint64

func (*Header) SizeCumulativePayload

func (h *Header) SizeCumulativePayload() uint64

Jump to

Keyboard shortcuts

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