fec

package module
v0.0.2-0...-3a70b74 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Unlicense Imports: 3 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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.

Jump to

Keyboard shortcuts

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