public TapeDataBlock(byte[] rawdata, ref int pointer)
        {
            int start = pointer;

            tAPBlock = new TAPBlock(rawdata, ref pointer);

            blockLength = pointer - start;
        }
Beispiel #2
0
        public StandardSpeedDataBlock(byte[] rawdata, ref int pointer)
        {
            int start = pointer;

            pauseLength = rawdata[pointer++] | (rawdata[pointer++] << 8);
            tAPBlock    = new TAPBlock(rawdata, ref pointer);

            blockLength = pointer - start;
        }
        public PureDataBlock(byte[] rawdata, ref int pointer)
        {
            int start = pointer;

            zeroLength = rawdata[pointer++] | (rawdata[pointer++] << 8);
            oneLength  = rawdata[pointer++] | (rawdata[pointer++] << 8);

            usedBits = rawdata[pointer++];
            if (usedBits != 8)
            {
                Console.WriteLine();
            }
            pauseLength = rawdata[pointer++] | (rawdata[pointer++] << 8);
            tAPBlock    = new TAPBlock(rawdata, ref pointer, true);

            blockLength = pointer - start;
        }
Beispiel #4
0
 public PureTone(byte[] rawdata, ref int pointer)
 {
     pulseLength    = (rawdata[pointer++] | (rawdata[pointer++] << 8));
     numberOfPulses = (rawdata[pointer++] | (rawdata[pointer++] << 8));
     tAPBlock       = new TAPBlock();
 }