raptorq

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEnoughSymbols = errors.New("not enough symbols")
View Source
var ParamsTable = []RawParams{}/* 477 elements not displayed */

Functions

This section is empty.

Types

type Decoder

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

func (*Decoder) AddSymbol

func (d *Decoder) AddSymbol(id uint32, data []byte) (bool, error)

func (*Decoder) Decode

func (d *Decoder) Decode() (bool, []byte, error)

type Encoder

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

func (*Encoder) BaseSymbolsNum

func (e *Encoder) BaseSymbolsNum() uint32

func (*Encoder) GenSymbol

func (e *Encoder) GenSymbol(id uint32) []byte

type RaptorQ

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

func NewRaptorQ

func NewRaptorQ(symbolSz uint32) *RaptorQ

func (*RaptorQ) CreateDecoder

func (r *RaptorQ) CreateDecoder(dataSize uint32) (*Decoder, error)

func (*RaptorQ) CreateEncoder

func (r *RaptorQ) CreateEncoder(data []byte) (*Encoder, error)

func (*RaptorQ) GetSymbolSize

func (r *RaptorQ) GetSymbolSize() uint32

type RawParams

type RawParams struct {
	KPadded uint32
	J       uint32
	S       uint32
	H       uint32
	W       uint32
}

type Symbol

type Symbol struct {
	ID   uint32
	Data []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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