18 writes to readPos
System (18)
sys\system\io\ports\SerialPort.cs (18)
658readPos = readLen = 0; 872readPos += bytesReadToBuffer; 874if (readPos == readLen) readPos = readLen = 0; // just a check to see if we can reset buffer 884readLen = readPos = 0; 924readPos++; 933readPos = beginReadPos; 984readLen = readPos = 0; 1091readPos += bytesToRead; 1092if (readPos == readLen) readPos = readLen = 0; 1159readPos = lastFullCharPos; 1161if (readPos == readLen) readPos = readLen = 0; 1171return inBuffer[readPos++]; 1203readPos = 0; 1214readPos = 0; 1291if (readPos == readLen) readPos = readLen = 0; 1317readPos = 0; 1455readPos = 0; 1483readPos = 0;
26 references to readPos
System (26)
sys\system\io\ports\SerialPort.cs (26)
189return readLen - readPos; 871Buffer.BlockCopy(inBuffer, readPos, buffer, offset, bytesReadToBuffer); 874if (readPos == readLen) readPos = readLen = 0; // just a check to see if we can reset buffer 918if (decoder.GetCharCount(inBuffer, readPos, CachedBytesToRead) != 0) 920int beginReadPos = readPos; 925} while (decoder.GetCharCount(inBuffer, beginReadPos, readPos - beginReadPos) < 1); 928decoder.GetChars(inBuffer, beginReadPos, readPos - beginReadPos, oneChar, 0); 976} while (decoder.GetCharCount(inBuffer, readPos, readLen - readPos) < 1); 981decoder.GetChars(inBuffer, readPos, readLen - readPos, oneChar, 0); 1023int charsWeAlreadyHave = decoder.GetCharCount(inBuffer, readPos, CachedBytesToRead); // full chars already in our buffer 1089decoder.GetChars(inBuffer, readPos, bytesToRead, buffer, offset); 1092if (readPos == readLen) readPos = readLen = 0; 1108int lastFullCharPos = readPos; // first index AFTER last full char read, capped at ReadLen. 1111currentBytesToExamine = Math.Min(count - totalCharsFound, readLen - readPos - totalBytesExamined); 1117currentBytesToExamine = readPos + totalBytesExamined - lastFullCharPos; 1161if (readPos == readLen) readPos = readLen = 0; 1170if (readLen != readPos) // stuff left in buffer, so we can read from it 1184if (readPos < readLen) 1186Buffer.BlockCopy(inBuffer, readPos, bytesReceived, 0, CachedBytesToRead); 1247int beginReadPos = readPos; 1291if (readPos == readLen) readPos = readLen = 0; 1315Buffer.BlockCopy(inBuffer, readPos, savBuffer, 0, bytesToSave); 1453Buffer.BlockCopy(inBuffer, readPos, inBuffer, 0, CachedBytesToRead); 1481Buffer.BlockCopy(inBuffer, readPos, newBuffer, 0, CachedBytesToRead);