Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BlockSizeLimit = int64(1048576) // 1 MB
BlockSizeLimit specifies the maximum size an imported block can have.
View Source
var ErrSizeLimitExceeded = fmt.Errorf("object size limit exceeded")
ErrSizeLimitExceeded signals that a block is larger than BlockSizeLimit.
Functions ¶
func NewDagFromFile ¶
NewDagFromFile constructs a Merkle DAG from the file at given path.
func NewDagFromReader ¶
NewDagFromReader constructs a Merkle DAG from the given io.Reader. size required for block construction.
Types ¶
type BlockSplitter ¶
type MaybeRabin ¶
type MaybeRabin struct { MinBlockSize int MaxBlockSize int // contains filtered or unexported fields }
func NewMaybeRabin ¶
func NewMaybeRabin(avgBlkSize int) *MaybeRabin
type SizeSplitter ¶
type SizeSplitter struct {
Size int
}
Click to show internal directories.
Click to hide internal directories.