reedsolomon

package
v0.0.0-...-e943e14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package reedsolomon provides a Reed-Solomon erasure code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	// contains filtered or unexported fields
}

func New

func New(data, parity int) (*Code, error)

func (*Code) Decode

func (c *Code) Decode(bs [][]byte) ([]byte, error)

func (*Code) Encode

func (c *Code) Encode(p []byte) ([][]byte, error)

func (*Code) Shards

func (c *Code) Shards() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL