Lines Matching refs:bufferSize

70         private int bufferSize;  field in Google.Protobuf.CodedInputStream
170 internal CodedInputStream(Stream input, byte[] buffer, int bufferPos, int bufferSize) in CodedInputStream() argument
175 this.bufferSize = bufferSize; 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);
342 if (bufferPos + 2 <= bufferSize) in ReadTag()
474 if (BitConverter.IsLittleEndian && 4 <= bufferSize - bufferPos) in ReadFloat()
550 if (length <= bufferSize - bufferPos) in ReadString()
591 if (length <= bufferSize - bufferPos && length > 0) in ReadBytes()
748 if (bufferPos + 5 > bufferSize) in ReadRawVarint32()
951 bufferSize += bufferSizeAfterLimit; in RecomputeBufferSizeAfterLimit()
952 int bufferEnd = totalBytesRetired + bufferSize; in RecomputeBufferSizeAfterLimit()
957 bufferSize -= bufferSizeAfterLimit; in RecomputeBufferSizeAfterLimit()
998 get { return bufferPos == bufferSize && !RefillBuffer(false); }
1012 if (bufferPos < bufferSize) in RefillBuffer()
1017 if (totalBytesRetired + bufferSize == currentLimit) in RefillBuffer()
1030 totalBytesRetired += bufferSize; in RefillBuffer()
1033 bufferSize = (input == null) ? 0 : input.Read(buffer, 0, buffer.Length); in RefillBuffer()
1034 if (bufferSize < 0) in RefillBuffer()
1038 if (bufferSize == 0) in RefillBuffer()
1053 totalBytesRetired + bufferSize + bufferSizeAfterLimit; in RefillBuffer()
1070 if (bufferPos == bufferSize) in ReadRawByte()
1098 if (size <= bufferSize - bufferPos) in ReadRawBytes()
1113 int pos = bufferSize - bufferPos; in ReadRawBytes()
1115 bufferPos = bufferSize; in ReadRawBytes()
1122 while (size - pos > bufferSize) in ReadRawBytes()
1124 Buffer.BlockCopy(buffer, 0, bytes, pos, bufferSize); in ReadRawBytes()
1125 pos += bufferSize; in ReadRawBytes()
1126 bufferPos = bufferSize; in ReadRawBytes()
1148 int originalBufferSize = bufferSize; in ReadRawBytes()
1151 totalBytesRetired += bufferSize; in ReadRawBytes()
1153 bufferSize = 0; in ReadRawBytes()
1216 if (size <= bufferSize - bufferPos) in SkipRawBytes()
1224 int pos = bufferSize - bufferPos; in SkipRawBytes()
1228 totalBytesRetired += bufferSize; in SkipRawBytes()
1231 bufferSize = 0; in SkipRawBytes()