Class DecoderResult
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.
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
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
inttext
stringbyteSegments
IList<byte[]>ecLevel
stringsaSequence
intsaParity
intsymbologyModifier
int
DecoderResult(byte[], string, IList<byte[]>, string, int)
initializing constructor
public DecoderResult(byte[] rawBytes, string text, IList<byte[]> byteSegments, string ecLevel, int symbologyModifier)
Parameters
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
stringbyteSegments
IList<byte[]>ecLevel
stringsaSequence
intsaParity
intsymbologyModifier
int
DecoderResult(byte[], string, List<byte[]>, string)
initializing constructor
public DecoderResult(byte[] rawBytes, string text, List<byte[]> byteSegments, string ecLevel)
Parameters
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
Properties
ByteSegments
list of byte segments in the result, or null if not applicable
public IList<byte[]> ByteSegments { get; }
Property Value
ECLevel
name of error correction level used, or null if not applicable
public string ECLevel { get; }
Property Value
Erasures
number of erasures corrected, or null if not applicable
public int Erasures { get; set; }
Property Value
ErrorsCorrected
number of errors corrected, or null if not applicable
public int ErrorsCorrected { get; set; }
Property Value
NumBits
how many bits ofRawBytes are valid; typically 8 times its length
public int NumBits { get; }
Property Value
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
StructuredAppendParity
gives the parity information if structured append was found
public int StructuredAppendParity { get; }
Property Value
StructuredAppendSequenceNumber
gives the sequence number of the result if structured append was found
public int StructuredAppendSequenceNumber { get; }
Property Value
SymbologyModifier
gives the symbology identifier
public int SymbologyModifier { get; set; }
Property Value
Text
text representation of the result
public string Text { get; }