Versions in this module Expand all Collapse all v0 v0.0.3 Apr 21, 2025 v0.0.2 Apr 21, 2025 Changes in this version + var Spans []int64 + func ChunkAddresses(data []byte, parities, reflen int) (addrs []swarm.Address, shardCnt int) + func ChunkPayloadSize(data []byte) (int, error) + func GenerateSpanSizes(levels, branches int) []int64 + func JoinReadAll(ctx context.Context, j Joiner, outFile io.Writer) (int64, error) + func Levels(length int64, sectionSize, branches int) int + func NewAbortError(err error) error + func NewChunkPipe() io.ReadWriteCloser + func NewHashError(err error) error + func NewSimpleReadCloser(buffer []byte) io.ReadCloser + func ReferenceCount(span uint64, level redundancy.Level, encrytedChunk bool) (int, int) + func SplitWriteAll(ctx context.Context, s Splitter, r io.Reader, l int64, toEncrypt bool) (swarm.Address, error) + type AbortError struct + func (e *AbortError) Error() string + func (e *AbortError) Unwrap() error + type ChunkPipe struct + func (c *ChunkPipe) Close() error + func (c *ChunkPipe) Read(b []byte) (int, error) + func (c *ChunkPipe) Write(b []byte) (int, error) + type HashError struct + func (e *HashError) Error() string + func (e *HashError) Unwrap() error + type Joiner interface + IterateChunkAddresses func(swarm.AddressIterFunc) error + Size func() int64 + type LoadSaver interface + type Loader interface + Load func(context.Context, []byte) ([]byte, error) + type Reader interface + type Saver interface + Save func(context.Context, []byte) ([]byte, error) + type Splitter interface + Split func(ctx context.Context, dataIn io.ReadCloser, dataLength int64, toEncrypt bool) (addr swarm.Address, err error)