fec

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Unlicense Imports: 6 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)

Functions

func Decode

func Decode(chunks [][]byte) (data []byte, e error)

Decode takes a set of shards and if there is sufficient to reassemble, returns the corrected data

func Encode

func Encode(data []byte) (chunks [][]byte, e error)

Encode turns a byte slice into a set of shards with first byte containing the shard number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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