Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileCorrupt = errors.New("File corrupted")
View Source
var ErrSizeIncorrect = errors.New("Provided size didn't match count of bytes read")
Functions ¶
func Check ¶
Check the integrity of the bytestream from r using an encoding bytestream in rsr that was been generated by Encode().
func Encode ¶
func Encode(r io.ReadSeeker, size int64, w io.Writer, nDataShards, nParityShards, hashRate int) error
Encode Reed-Solomon encodes the bytestream from the io.Reader r and write the result to the provided io.Writer. The number of bytes that will be provided by r must be passed in the size argument.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.