xorcoding

package
v0.0.0-...-f991725 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2014 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcPaddedCapacity

func CalcPaddedCapacity(original_length int, b byte) (padded_capacity int)

func XorDecode

func XorDecode(chunks [][]byte) (data_block []byte, err error)

XorDecode recovers original data_block from chunks given

func XorEncode

func XorEncode(data_block []byte, b byte) (chunks [][]byte)

XorEncode takes a data_block as input and produces b + 1 chunks from it Original data block can then be recovered from any of b chunks

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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