encoding

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 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 ReedSolomonConfig

type ReedSolomonConfig struct {
	DataShards   int
	ParityShards int
}

type ReedSolomonEncoder

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

func NewReedSolomonEncoder

func NewReedSolomonEncoder(dataShards, parityShards int) (*ReedSolomonEncoder, error)

func (*ReedSolomonEncoder) Decode

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

func (*ReedSolomonEncoder) Encode

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

Jump to

Keyboard shortcuts

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