• Home
  • Raw
  • Download

Lines Matching refs:bufferPos

76         private int bufferPos = 0;  field in Google.Protobuf.CodedInputStream
170 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize) in CodedInputStream() argument
174 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) in CodedInputStream()
232 return input.Position - ((bufferSize + bufferSizeAfterLimit) - bufferPos);
234 return bufferPos;
342 if (bufferPos + 2 <= bufferSize) in ReadTag()
344 int tmp = buffer[bufferPos++]; in ReadTag()
352 if ((tmp = buffer[bufferPos++]) < 128) in ReadTag()
360 bufferPos -= 2; in ReadTag()
474 if (BitConverter.IsLittleEndian && 4 <= bufferSize - bufferPos) in ReadFloat()
476 float ret = BitConverter.ToSingle(buffer, bufferPos); in ReadFloat()
477 bufferPos += 4; in ReadFloat()
550 if (length <= bufferSize - bufferPos) in ReadString()
554 String result = CodedOutputStream.Utf8Encoding.GetString(buffer, bufferPos, length); in ReadString()
555 bufferPos += length; in ReadString()
591 if (length <= bufferSize - bufferPos && length > 0) in ReadBytes()
595 ByteString result = ByteString.CopyFrom(buffer, bufferPos, length); in ReadBytes()
596 bufferPos += length; in ReadBytes()
748 if (bufferPos + 5 > bufferSize) in ReadRawVarint32()
753 int tmp = buffer[bufferPos++]; in ReadRawVarint32()
759 if ((tmp = buffer[bufferPos++]) < 128) in ReadRawVarint32()
766 if ((tmp = buffer[bufferPos++]) < 128) in ReadRawVarint32()
773 if ((tmp = buffer[bufferPos++]) < 128) in ReadRawVarint32()
780 result |= (tmp = buffer[bufferPos++]) << 28; in ReadRawVarint32()
936 byteLimit += totalBytesRetired + bufferPos; in PushLimit()
986 int currentAbsolutePosition = totalBytesRetired + bufferPos;
998 get { return bufferPos == bufferSize && !RefillBuffer(false); }
1012 if (bufferPos < bufferSize) in RefillBuffer()
1032 bufferPos = 0; in RefillBuffer()
1070 if (bufferPos == bufferSize) in ReadRawByte()
1074 return buffer[bufferPos++]; in ReadRawByte()
1090 if (totalBytesRetired + bufferPos + size > currentLimit) in ReadRawBytes()
1093 SkipRawBytes(currentLimit - totalBytesRetired - bufferPos); in ReadRawBytes()
1098 if (size <= bufferSize - bufferPos) in ReadRawBytes()
1102 ByteArray.Copy(buffer, bufferPos, bytes, 0, size); in ReadRawBytes()
1103 bufferPos += size; in ReadRawBytes()
1113 int pos = bufferSize - bufferPos; in ReadRawBytes()
1114 ByteArray.Copy(buffer, bufferPos, bytes, 0, pos); in ReadRawBytes()
1115 bufferPos = bufferSize; in ReadRawBytes()
1126 bufferPos = bufferSize; in ReadRawBytes()
1131 bufferPos = size - pos; in ReadRawBytes()
1147 int originalBufferPos = bufferPos; in ReadRawBytes()
1152 bufferPos = 0; in ReadRawBytes()
1208 if (totalBytesRetired + bufferPos + size > currentLimit) in SkipRawBytes()
1211 SkipRawBytes(currentLimit - totalBytesRetired - bufferPos); in SkipRawBytes()
1216 if (size <= bufferSize - bufferPos) in SkipRawBytes()
1219 bufferPos += size; in SkipRawBytes()
1224 int pos = bufferSize - bufferPos; in SkipRawBytes()
1230 bufferPos = 0; in SkipRawBytes()