author Sean Owen
  export default class DecoderResult { private numBits : number ; private errorsCorrected : number ; private erasures : number ; private other : any ; public constructor ( private rawBytes , private text , private byteSegments , private ecLevel , private structuredAppendSequenceNumber = - 1 , private structuredAppendParity = - 1 ) { this . numBits = ( rawBytes === undefined || rawBytes === null ) ? 0 : 8 * rawBytes . length ; } return public getRawBytes ( ) { return this . rawBytes ; } return how many bits of  {@link #getRawBytes()} are valid; typically 8 times its length
     *  since public getNumBits ( ) { return this . numBits ; } param numBits overrides the number of bits that are valid in  {@link #getRawBytes()} since public setNumBits ( numBits ) { this . numBits = numBits ; } return public getText ( ) { return this . text ; } return public getByteSegments ( ) { return this . byteSegments ; } return public getECLevel ( ) { return this . ecLevel ; } return public getErrorsCorrected ( ) { return this . errorsCorrected ; } public setErrorsCorrected ( errorsCorrected ) { this . errorsCorrected = errorsCorrected ; } return public getErasures ( ) { return this . erasures ; } public setErasures ( erasures ) { this . erasures = erasures ; } return public getOther ( ) { return this . other ; } public setOther ( other ) { this . other = other ; } public hasStructuredAppend ( ) { return this . structuredAppendParity >= 0 && this . structuredAppendSequenceNumber >= 0 ; } public getStructuredAppendParity ( ) { return this . structuredAppendParity ; } public getStructuredAppendSequenceNumber ( ) { return this . structuredAppendSequenceNumber ; } }