Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullRLNCRecoder ¶
type FullRLNCRecoder struct {
// contains filtered or unexported fields
}
func NewFullRLNCRecoder ¶
func NewFullRLNCRecoder(pieces []*coder.CodedPiece) *FullRLNCRecoder
Provide with all coded pieces, which are to be used for performing fullRLNC ( read recoding of coded data ) & get back recoder which is used for on-the-fly construction of N-many recoded pieces
func NewFullRLNCRecoderWithFlattenData ¶
func NewFullRLNCRecoderWithFlattenData(data []byte, pieceCount uint, piecesCodedTogether uint) (*FullRLNCRecoder, error)
A byte slice which is formed by concatenating coded pieces, will be splitted into structured coded pieces ( read having two components i.e. coding vector & piece ) & recoder to be returned, which can be used for on-the-fly random piece recoding
func (*FullRLNCRecoder) AddCodedPiece ¶
func (r *FullRLNCRecoder) AddCodedPiece(piece *coder.CodedPiece)
func (*FullRLNCRecoder) CodedPiece ¶
func (r *FullRLNCRecoder) CodedPiece() (*coder.CodedPiece, error)
Returns recoded piece, which is constructed on-the-fly by randomly drawing some coding coefficients from finite field & performing full RLNC with all coded pieces
type Recoder ¶
type Recoder interface { AddCodedPiece(piece *coder.CodedPiece) CodedPiece() (*coder.CodedPiece, error) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.