示例#1
0
 // Return debug String.
 public override System.String ToString()
 {
     System.Text.StringBuilder result = new System.Text.StringBuilder(200);
     result.Append("<<\n");
     result.Append(" mode: ");
     result.Append(mode);
     result.Append("\n ecLevel: ");
     result.Append(ecLevel);
     result.Append("\n version: ");
     result.Append(version);
     result.Append("\n matrixWidth: ");
     result.Append(matrixWidth);
     result.Append("\n maskPattern: ");
     result.Append(maskPattern);
     result.Append("\n numTotalBytes: ");
     result.Append(numTotalBytes);
     result.Append("\n numDataBytes: ");
     result.Append(numDataBytes);
     result.Append("\n numECBytes: ");
     result.Append(numECBytes);
     result.Append("\n numRSBlocks: ");
     result.Append(numRSBlocks);
     if (matrix == null)
     {
         result.Append("\n matrix: null\n");
     }
     else
     {
         result.Append("\n matrix:\n");
         result.Append(matrix.ToString());
     }
     result.Append(">>\n");
     return(result.ToString());
 }