• Home
  • Raw
  • Download

Lines Matching refs:bufferPos

76         private int bufferPos = 0;  field in Google.Protobuf.CodedInputStream
169 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, bool leaveOp… in CodedInputStream() argument
173 this.bufferPos = bufferPos; in CodedInputStream()
188 …internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize, int sizeLimi… in CodedInputStream() argument
189 : this(input, buffer, bufferPos, bufferSize, leaveOpen) in CodedInputStream()
233 return input.Position - ((bufferSize + bufferSizeAfterLimit) - bufferPos);
235 return bufferPos;
353 if (bufferPos + 2 <= bufferSize) in ReadTag()
355 int tmp = buffer[bufferPos++]; in ReadTag()
363 if ((tmp = buffer[bufferPos++]) < 128) in ReadTag()
371 bufferPos -= 2; in ReadTag()
492 if (BitConverter.IsLittleEndian && 4 <= bufferSize - bufferPos) in ReadFloat()
494 float ret = BitConverter.ToSingle(buffer, bufferPos); in ReadFloat()
495 bufferPos += 4; in ReadFloat()
568 if (length <= bufferSize - bufferPos && length > 0) in ReadString()
572 String result = CodedOutputStream.Utf8Encoding.GetString(buffer, bufferPos, length); in ReadString()
573 bufferPos += length; in ReadString()
623 if (length <= bufferSize - bufferPos && length > 0) in ReadBytes()
627 ByteString result = ByteString.CopyFrom(buffer, bufferPos, length); in ReadBytes()
628 bufferPos += length; in ReadBytes()
778 if (bufferPos + 5 > bufferSize) in ReadRawVarint32()
783 int tmp = buffer[bufferPos++]; in ReadRawVarint32()
789 if ((tmp = buffer[bufferPos++]) < 128) in ReadRawVarint32()
796 if ((tmp = buffer[bufferPos++]) < 128) in ReadRawVarint32()
803 if ((tmp = buffer[bufferPos++]) < 128) in ReadRawVarint32()
810 result |= (tmp = buffer[bufferPos++]) << 28; in ReadRawVarint32()
966 byteLimit += totalBytesRetired + bufferPos; in PushLimit()
1016 int currentAbsolutePosition = totalBytesRetired + bufferPos;
1028 get { return bufferPos == bufferSize && !RefillBuffer(false); }
1042 if (bufferPos < bufferSize) in RefillBuffer()
1062 bufferPos = 0; in RefillBuffer()
1100 if (bufferPos == bufferSize) in ReadRawByte()
1104 return buffer[bufferPos++]; in ReadRawByte()
1120 if (totalBytesRetired + bufferPos + size > currentLimit) in ReadRawBytes()
1123 SkipRawBytes(currentLimit - totalBytesRetired - bufferPos); in ReadRawBytes()
1128 if (size <= bufferSize - bufferPos) in ReadRawBytes()
1132 ByteArray.Copy(buffer, bufferPos, bytes, 0, size); in ReadRawBytes()
1133 bufferPos += size; in ReadRawBytes()
1143 int pos = bufferSize - bufferPos; in ReadRawBytes()
1144 ByteArray.Copy(buffer, bufferPos, bytes, 0, pos); in ReadRawBytes()
1145 bufferPos = bufferSize; in ReadRawBytes()
1156 bufferPos = bufferSize; in ReadRawBytes()
1161 bufferPos = size - pos; in ReadRawBytes()
1177 int originalBufferPos = bufferPos; in ReadRawBytes()
1182 bufferPos = 0; in ReadRawBytes()
1238 if (totalBytesRetired + bufferPos + size > currentLimit) in SkipRawBytes()
1241 SkipRawBytes(currentLimit - totalBytesRetired - bufferPos); in SkipRawBytes()
1246 if (size <= bufferSize - bufferPos) in SkipRawBytes()
1249 bufferPos += size; in SkipRawBytes()
1254 int pos = bufferSize - bufferPos; in SkipRawBytes()
1260 bufferPos = 0; in SkipRawBytes()