Versions in this module Expand all Collapse all v0 v0.7.1 Sep 14, 2022 v0.7.0 Jul 8, 2022 Changes in this version + var Spans []int64 + 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 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)