Versions in this module Expand all Collapse all v0 v0.1.0 Jun 19, 2022 Changes in this version + var ErrInvShardNum = errors.New(...) + var ErrMaxShardNum = errors.New("cannot create Encoder with more than 256 data+parity shards") + type XRS struct + RS *rs.RS + XORSet map[int][]int + func New(dataNum, parityNum int) (x *XRS, err error) + func (x *XRS) Encode(vects [][]byte) (err error) + func (x *XRS) GetNeedVects(needReconst int) (aNeed, bNeed []int, err error) + func (x *XRS) Reconst(vects [][]byte, dpHas, needReconst []int) (err error) + func (x *XRS) ReconstOne(vects [][]byte, needReconst int) (err error) + func (x *XRS) Reconstruct(vects [][]byte) error + func (x *XRS) ReconstructData(vects [][]byte) error + func (x *XRS) Replace(data [][]byte, replaceRows []int, parity [][]byte) (err error) + func (x *XRS) Split(data []byte) ([][]byte, error) + func (x *XRS) Update(oldData, newData []byte, row int, parity [][]byte) (err error)