encoding

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinShards   = 1
	MaxShards   = 256
	MinDataSize = 1
	MaxDataSize = 1 << 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReedSolomon added in v1.0.1

type ReedSolomon struct {
	// contains filtered or unexported fields
}

func NewReedSolomon added in v1.0.1

func NewReedSolomon(dataShards, parityShards int) (*ReedSolomon, error)

func (*ReedSolomon) Decode added in v1.0.1

func (r *ReedSolomon) Decode(data []byte) ([]byte, error)

func (*ReedSolomon) Encode added in v1.0.1

func (r *ReedSolomon) Encode(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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