示例#1
0
        public override int ioRead(TPointer outputPointer, int outputLength)
        {
            int readLength = base.ioRead(outputPointer, outputLength);

            if (readLength > 0)
            {
                IMemoryReaderWriter memoryReaderWriter = MemoryReaderWriter.getMemoryReaderWriter(outputPointer.Address, readLength, 1);
                for (int i = 0; i < readLength; i++)
                {
                    int value = memoryReaderWriter.readCurrent();
                    value ^= xor;
                    memoryReaderWriter.writeNext(value);
                }
                memoryReaderWriter.flush();
            }

            return(readLength);
        }
示例#2
0
 public int readCurrent()
 {
     return(imageWriter.readCurrent());
 }
示例#3
0
 public int readCurrent()
 {
     return(color565to8888(memoryReaderWriter.readCurrent()));
 }
示例#4
0
 public void readCurrent(ColorDepth colorDepth)
 {
     colorDepth.color = fbWriter.readCurrent();
     colorDepth.depth = depthWriter.readCurrent();
 }