Documentation ¶
Index ¶
- func NewRSErrorCorrectionFacility(ctx context.Context) interfaces.ErrorCorrectionFacility
- func NewRSErrorCorrectionFacilityFactory() interfaces.ErrorCorrectionFacilityFactory
- type RSErrorCorrectionFacility
- func (r *RSErrorCorrectionFacility) AddData(data []byte) (id int, wrappedData []byte)
- func (r *RSErrorCorrectionFacility) AddShard(id int, data []byte) (done bool, encoded []byte)
- func (r *RSErrorCorrectionFacility) ConstructReconstructShard() (int, []byte, bool)
- func (r *RSErrorCorrectionFacility) GetParityShardSum(datas int) int
- func (r *RSErrorCorrectionFacility) MaxShardYieldRemaining() int
- func (r *RSErrorCorrectionFacility) Reconstruct() [][]byte
- type RSErrorCorrectionFacilityFactory
- type RSMessageHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRSErrorCorrectionFacility ¶
func NewRSErrorCorrectionFacility(ctx context.Context) interfaces.ErrorCorrectionFacility
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 ¶
func (R RSErrorCorrectionFacilityFactory) Create(ctx context.Context) interfaces.ErrorCorrectionFacility
type RSMessageHeader ¶
type RSMessageHeader struct {
Len int16 `struc:"int16"`
}
Click to show internal directories.
Click to hide internal directories.