Versions in this module Expand all Collapse all v0 v0.7.0 May 26, 2023 Changes in this version + const TestRsDefaultNumData + const TestRsDefaultNumParity + var UseBlake2b256 NodeOpts + var UseCidV1 = NodeOpts + var UseProtoBufLeaves = NodeOpts + var UseRawLeaves = NodeOpts + func ArrComp(a, b []byte) error + func ExtendMetaBytes(existing []byte, extended []byte) []byte + func GetDAGServ() ipld.DAGService + func GetDagBuilderParams(dserv ipld.DAGService, opts NodeOpts) *h.DagBuilderParams + func GetEmptyNode(t testing.TB, dserv ipld.DAGService, opts NodeOpts) ipld.Node + func GetNode(t testing.TB, dserv ipld.DAGService, data []byte, opts NodeOpts) ipld.Node + func GetNodeWithGivenData(t testing.TB, dserv ipld.DAGService, data []byte, opts NodeOpts) ipld.Node + func GetRandomNode(t testing.TB, dserv ipld.DAGService, size int64, opts NodeOpts) ([]byte, ipld.Node) + func GetReedSolomonShards(t *testing.T, inbuf []byte, numData, numParity uint64) [][]byte + func MetaSplitterGen(size int64) chunker.SplitterGen + func PrintDag(nd *mdag.ProtoNode, ds ipld.DAGService, indent int) + func RandomRemoveNodes(t *testing.T, ctx context.Context, root ipld.Node, dserv ipld.DAGService, ...) (ipld.Node, []cid.Cid, []int) + func ReedSolomonMetaBytes(numData, numParity, fileSize uint64) []byte + func SizeSplitterGen(size int64) chunker.SplitterGen + type NodeOpts struct + Balanced bool + ChunkSize uint64 + ForceRawLeaves bool + MaxLinks int + Metadata []byte + MetadataToMdify []byte + Prefix cid.Prefix + RawLeavesUsed bool + ReedSolomonEnabled bool + func UseBalancedWithMetadata(maxLinks int, mdata []byte, chkSize uint64, mdata2 []byte) NodeOpts + func UseReedSolomon(numData, numParity, fileSize uint64, mdata []byte, chkSize uint64) (NodeOpts, []byte) + func UseTrickleWithMetadata(maxLinks int, mdata []byte, chkSize uint64, mdata2 []byte) NodeOpts