golay24

package
v0.0.0-...-42f50ae Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 2 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)

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 DecodeLowLevel2

func DecodeLowLevel2(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 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