C# Class zxingwp7.common.reedsolomon.GF256

This class contains utility methods for performing mathematical operations over the Galois Field GF(256). Operations use a given primitive polynomial in calculations.

Throughout this package, elements of GF(256) are represented as an int for convenience and speed (but at the cost of memory). Only the bottom 8 bits are really used.

ファイルを表示 Open project: henningms/zxing2.0-wp7 Class Usage Examples

Public Properties

Property Type Description
DATA_MATRIX_FIELD GF256
QR_CODE_FIELD GF256

Private Properties

Property Type Description
GF256 System
addOrSubtract int
buildMonomial GF256Poly
exp int
inverse int
log int
multiply int

Private Methods

Method Description
GF256 ( int primitive ) : System

Create a representation of GF(256) using the given primitive polynomial.

addOrSubtract ( int a, int b ) : int

Implements both addition and subtraction -- they are the same in GF(256).

buildMonomial ( int degree, int coefficient ) : GF256Poly
exp ( int a ) : int
inverse ( int a ) : int
log ( int a ) : int
multiply ( int a, int b ) : int

Property Details

DATA_MATRIX_FIELD public_oe static_oe property

public static GF256,zxingwp7.common.reedsolomon DATA_MATRIX_FIELD
return GF256

QR_CODE_FIELD public_oe static_oe property

public static GF256,zxingwp7.common.reedsolomon QR_CODE_FIELD
return GF256