Table of Contents

Class DecoderResult

Namespace
ZXing.Common
Assembly
zxing.dll

Encapsulates the result of decoding a matrix of bits. This typically applies to 2D barcode formats. For now it contains the raw bytes obtained, as well as a String interpretation of those bytes, if applicable. Sean Owen

public sealed class DecoderResult
Inheritance
DecoderResult
Inherited Members

Constructors

DecoderResult(byte[], int, string, IList<byte[]>, string)

initializing constructor

public DecoderResult(byte[] rawBytes, int numBits, string text, IList<byte[]> byteSegments, string ecLevel)

Parameters

rawBytes byte[]
numBits int
text string
byteSegments IList<byte[]>
ecLevel string

DecoderResult(byte[], int, string, IList<byte[]>, string, int, int, int)

initializing constructor

public DecoderResult(byte[] rawBytes, int numBits, string text, IList<byte[]> byteSegments, string ecLevel, int saSequence, int saParity, int symbologyModifier)

Parameters

rawBytes byte[]
numBits int
text string
byteSegments IList<byte[]>
ecLevel string
saSequence int
saParity int
symbologyModifier int

DecoderResult(byte[], string, IList<byte[]>, string, int)

initializing constructor

public DecoderResult(byte[] rawBytes, string text, IList<byte[]> byteSegments, string ecLevel, int symbologyModifier)

Parameters

rawBytes byte[]
text string
byteSegments IList<byte[]>
ecLevel string
symbologyModifier int

DecoderResult(byte[], string, IList<byte[]>, string, int, int, int)

initializing constructor

public DecoderResult(byte[] rawBytes, string text, IList<byte[]> byteSegments, string ecLevel, int saSequence, int saParity, int symbologyModifier)

Parameters

rawBytes byte[]
text string
byteSegments IList<byte[]>
ecLevel string
saSequence int
saParity int
symbologyModifier int

DecoderResult(byte[], string, List<byte[]>, string)

initializing constructor

public DecoderResult(byte[] rawBytes, string text, List<byte[]> byteSegments, string ecLevel)

Parameters

rawBytes byte[]
text string
byteSegments List<byte[]>
ecLevel string

DecoderResult(byte[], string, List<byte[]>, string, int, int)

initializing constructor

public DecoderResult(byte[] rawBytes, string text, List<byte[]> byteSegments, string ecLevel, int saSequence, int saParity)

Parameters

rawBytes byte[]
text string
byteSegments List<byte[]>
ecLevel string
saSequence int
saParity int

Properties

ByteSegments

list of byte segments in the result, or null if not applicable

public IList<byte[]> ByteSegments { get; }

Property Value

IList<byte[]>

ECLevel

name of error correction level used, or null if not applicable

public string ECLevel { get; }

Property Value

string

Erasures

number of erasures corrected, or null if not applicable

public int Erasures { get; set; }

Property Value

int

ErrorsCorrected

number of errors corrected, or null if not applicable

public int ErrorsCorrected { get; set; }

Property Value

int

NumBits

how many bits ofRawBytes are valid; typically 8 times its length

public int NumBits { get; }

Property Value

int

Other

Miscellanseous data value for the various decoders

public object Other { get; set; }

Property Value

object

The other.

RawBytes

raw bytes representing the result, or null if not applicable

public byte[] RawBytes { get; }

Property Value

byte[]

StructuredAppend

gets a value which describe if structure append data was found

public bool StructuredAppend { get; }

Property Value

bool

StructuredAppendParity

gives the parity information if structured append was found

public int StructuredAppendParity { get; }

Property Value

int

StructuredAppendSequenceNumber

gives the sequence number of the result if structured append was found

public int StructuredAppendSequenceNumber { get; }

Property Value

int

SymbologyModifier

gives the symbology identifier

public int SymbologyModifier { get; set; }

Property Value

int

Text

text representation of the result

public string Text { get; }

Property Value

string