Ejemplo n.º 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 + "]");
     }
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID));
 }
Ejemplo n.º 3
0
 public override string ToString()
 {
     return("[Call Sequence:" + TZXFunctions.ArrayToDec(ArrayOfCallBlockNumbers, Index) + "]");
 }
Ejemplo n.º 4
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID) + " {" + numberOfPulses.ToString() + " pulses of " + PulseLength.ToString() + " Cycles}");
 }
Ejemplo n.º 5
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID) + " {" + tAPBlock.Length.ToString() + " bytes}");
 }
Ejemplo n.º 6
0
 public override string ToString()
 {
     return("TZXTAP Block: " + TZXFunctions.ArrayToString(data, 16, 2));
 }
Ejemplo n.º 7
0
 public override string ToString()
 {
     return(TZXFunctions.EnumToString(ID) + " " + TZXFunctions.ArrayToString(ListOfSelections));;
 }