Documentation ¶ Overview ¶ Package fec implements Reed Solomon 9/3 forward error correction, intended to be sent as 9 pieces where 3 uncorrupted parts allows assembly of the message Index ¶ func Decode(chunks [][]byte) (data []byte, err error) func Encode(data []byte) (chunks [][]byte, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(chunks [][]byte) (data []byte, err error) func Encode ¶ func Encode(data []byte) (chunks [][]byte, err error) Encode turns a byte slice into a set of shards with first byte containing the shard number. Previously this code included a CRC32 but this is unnecessary since the shards will be sent wrapped in HMAC protected encryption Types ¶ This section is empty. Source Files ¶ View all Source files fec.go Click to show internal directories. Click to hide internal directories.