Versions in this module Expand all Collapse all v1 v1.0.1 Dec 15, 2021 Changes in this version + func ArByteToFile(ar []byte, name string, ext string, permissions fs.FileMode) error + func CollectArByteFile(arByte []byte, eccsyb int) [][]byte + func CollectArByteNotEccFile(arByte []byte) [][]byte + func CorruptByteArray(arByte []byte, EccSymbols int) []byte + func DecodeAndFixCorruptByteArray(arByte []byte, PrimitivePoly int, EccSymbols int) []byte + func EncodeByteArray(arByte []byte, PrimitivePoly int, EccSymbols int) []byte + func FileToArByte(filename string) ([]byte, error) + func FindPrimePolys(cExponent int, fast, single bool) []int + func GFDeduction(x, y int) int + func GFDivision(x, y int) (int, error) + func GFMult(x, y int) int + func GFPolyAddition(p, q []int) (result []int) + func GFPolyMult(p, q []int) (result []int) + func GFPolyScale(p []int, x int) []int + func GFPow(x, power int) int + func PolyGen(nsym int) []int + func RandInt(min int, max int) int + func ReadFile(filePath string) ([]byte, string) + func UnPackArray(decodedCollectArByte [][]int) []byte + func WriteFile(arResultByte []byte, fileExt string, operation string) + type RSCodec struct + EccSymbols int + PrimitivePoly int + func (rs *RSCodec) InitTables() + func (rs *RSCodec) RSDecode(arStart []int) ([]int, []int) + func (rs *RSCodec) RSEncode(arByte []byte) (encoded []int) v1.0.0 Dec 3, 2021