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