reedsolomon

package
v0.0.0-...-8791923 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reedsolomon provides error correction encoding for QR Code 2005.

QR Code 2005 uses a Reed-Solomon error correcting code to detect and correct errors encountered during decoding.

The generated RS codes are systematic, and consist of the input data with error correction bytes appended.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(data *bitset.Bitset, numECBytes int) *bitset.Bitset

Encode data for QR Code 2005 using the appropriate Reed-Solomon code.

numECBytes is the number of error correction bytes to append, and is determined by the target QR Code's version and error correction level.

ISO/IEC 18004 table 9 specifies the numECBytes required. e.g. a 1-L code has numECBytes=7.

Types

This section is empty.

Jump to

Keyboard shortcuts

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