internal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleJoiner

type SimpleJoiner struct {
	// contains filtered or unexported fields
}

func NewSimpleJoiner

func NewSimpleJoiner(ctx context.Context, getter storage.Getter, address swarm.Address) (*SimpleJoiner, int64, error)

NewSimpleJoiner creates a new SimpleJoiner.

func (*SimpleJoiner) Read

func (j *SimpleJoiner) Read(b []byte) (n int, err error)

Read is called by the consumer to retrieve the joined data. It must be called with a buffer equal to the maximum chunk size.

func (*SimpleJoiner) ReadAt

func (j *SimpleJoiner) ReadAt(b []byte, off int64) (read int, err error)

func (*SimpleJoiner) Seek

func (j *SimpleJoiner) Seek(offset int64, whence int) (int64, error)

func (*SimpleJoiner) Size

func (j *SimpleJoiner) Size() (int64, error)

Jump to

Keyboard shortcuts

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