Discover Packages
github.com/p9c/pod
pkg
coding
fec
package
Version:
v1.9.21
Opens a new window with list of versions in this module.
Published: Mar 13, 2021
License: Unlicense
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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
Decode takes a set of shards and if there is sufficient to reassemble,
returns the corrected data
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.