internal virtual string getDecodedString(int[] blocks, int version, int numErrorCorrectionCode) { string dataString = null; QRCodeDataBlockReader reader = new QRCodeDataBlockReader(blocks, version, numErrorCorrectionCode); try { dataString = reader.DataString; } catch (IndexOutOfRangeException exception) { throw new InvalidDataBlockException(exception.Message); } return dataString; }
internal virtual sbyte[] getDecodedByteArray(int[] blocks, int version, int numErrorCorrectionCode) { sbyte[] dataByte; QRCodeDataBlockReader reader = new QRCodeDataBlockReader(blocks, version, numErrorCorrectionCode); try { dataByte = reader.DataByte; } catch (InvalidDataBlockException exception) { throw exception; } return dataByte; }