예제 #1
0
 public CustomInfoBlock(byte[] rawdata, ref int pointer)
 {
     try
     {
         int start = pointer;
         IdentificationString = new char[0x10];
         for (int i = 0; i < 0x10; i++)
         {
             IdentificationString[i] = (char)rawdata[pointer++];
         }
         LengthOfTheCustomInfo = rawdata[pointer++] + (rawdata[pointer++] << 0x08) + (rawdata[pointer++] << 0x10) + (rawdata[pointer++] << 0x18);
         CustomInfo            = new byte[LengthOfTheCustomInfo];
         for (int i = 0; i < LengthOfTheCustomInfo; i++)
         {
             if (i >= rawdata.Length - 1)
             {
                 break;
             }
             CustomInfo[i] = rawdata[pointer++];
         }
         blockLength = pointer - start;
     }
     catch (Exception ex)
     {
         throw new CustomException("Block Error: " + TZXFunctions.EnumToString(ID) + " [" + ex.Message + "]");
     }
 }
예제 #2
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID));
 }
예제 #3
0
 public override string ToString()
 {
     return("[Call Sequence:" + TZXFunctions.ArrayToDec(ArrayOfCallBlockNumbers, Index) + "]");
 }
예제 #4
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID) + " {" + numberOfPulses.ToString() + " pulses of " + PulseLength.ToString() + " Cycles}");
 }
예제 #5
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID) + " {" + tAPBlock.Length.ToString() + " bytes}");
 }
예제 #6
0
 public override string ToString()
 {
     return("TZXTAP Block: " + TZXFunctions.ArrayToString(data, 16, 2));
 }
예제 #7
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID) + " " + TZXFunctions.ArrayToString(ListOfSelections));;
 }