reedSolomon

package
v0.0.0-...-632c06c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRSErrorCorrectionFacilityFactory

func NewRSErrorCorrectionFacilityFactory() interfaces.ErrorCorrectionFacilityFactory

Types

type RSErrorCorrectionFacility

type RSErrorCorrectionFacility struct {
	DataInput  int
	ShardInput int
	//Zero if unknown
	TotalDataShards int
	// contains filtered or unexported fields
}

func (*RSErrorCorrectionFacility) AddData

func (r *RSErrorCorrectionFacility) AddData(data []byte) (id int, wrappedData []byte)

func (*RSErrorCorrectionFacility) AddShard

func (r *RSErrorCorrectionFacility) AddShard(id int, data []byte) (done bool, encoded []byte)

func (*RSErrorCorrectionFacility) ConstructReconstructShard

func (r *RSErrorCorrectionFacility) ConstructReconstructShard() (int, []byte, bool)

func (*RSErrorCorrectionFacility) GetParityShardSum

func (r *RSErrorCorrectionFacility) GetParityShardSum(datas int) int

func (*RSErrorCorrectionFacility) MaxShardYieldRemaining

func (r *RSErrorCorrectionFacility) MaxShardYieldRemaining() int

func (*RSErrorCorrectionFacility) Reconstruct

func (r *RSErrorCorrectionFacility) Reconstruct() [][]byte

type RSErrorCorrectionFacilityFactory

type RSErrorCorrectionFacilityFactory struct {
}

func (RSErrorCorrectionFacilityFactory) Create

type RSMessageHeader

type RSMessageHeader struct {
	Len int16 `struc:"int16"`
}

Jump to

Keyboard shortcuts

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