golay24

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Encoding = [4096]uint32{}/* 4096 elements not displayed */
View Source
var EncodingUint8Triples = encodeTableToUint8Triples(Encoding)
View Source
var PackageProps = packageprops.Props{
	WASMWASI:         packageprops.WASMCompiles,
	WASMJS:           packageprops.WASMCompiles,
	WASMFreestanding: packageprops.WASMCompiles,
}

PackageProps records this package's curated properties (ADR-0080). Seeded by `boxer code analysis golang wasmsurvey props generate`; curate by hand. The same group's `props verify` reconciles it.

Functions

func ApplyErrorGF2

func ApplyErrorGF2(code uint32, errorBits uint32) uint32

func DecodeLowLevel

func DecodeLowLevel(dstPreallocated []byte, g24 []byte)

func DecodeLowLevel0

func DecodeLowLevel0(dstPreallocated []byte, g24 []byte, nCodeWords uint32)

func DecodeLowLevel1

func DecodeLowLevel1(dstPreallocated []byte, g24 []byte, nCodeWords uint32)

func DecodeSingle

func DecodeSingle(v uint32) (corrected uint16)

func EncodeBytes

func EncodeBytes(dstP []byte, p []byte) (dst []byte, err error)

func Generate24BitNumberWithFixedPopcount

func Generate24BitNumberWithFixedPopcount(popcount uint8, handler func(combination uint32))

func GenerateBitErrors

func GenerateBitErrors(code uint32, minErrorsIncl uint8, maxErrorsIncl uint8, handler func(codeWithErrors uint32, nErrors uint8))

func HammingDistance32

func HammingDistance32(a uint32, b uint32) int

func NumberOfBitErrors

func NumberOfBitErrors(v uint32) (nBitsWrong uint8)

func NumberOfPossibleErrorsIn24Bits

func NumberOfPossibleErrorsIn24Bits(numberOfBitsToChange uint8) int

NumberOfPossibleErrorsIn24Bits returns binomialCoefficient(24, numberOfBitsToChange).

func NumberOfPossibleRepresentationsInMultiCodewordSeq

func NumberOfPossibleRepresentationsInMultiCodewordSeq(numberOfCodewords int64, numberOfBitsToChangeMax uint8) *big.Int

func Syndrome

func Syndrome(erro uint32) uint16

Types

This section is empty.

Jump to

Keyboard shortcuts

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