22 references to IntEncoder
System.ServiceModel (22)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
488dictionarySize += IntEncoder.GetEncodedSize(utf8ValueSize) + utf8ValueSize; 519offset += IntEncoder.Encode(utf8ValueSize, buffer, offset); 526int headerSize = IntEncoder.GetEncodedSize(dictionarySize); 529IntEncoder.Encode(dictionarySize, buffer, newOffset); 758messageOffset += IntEncoder.MaxEncodedSize; 1023bytesRequired += IntEncoder.GetEncodedSize(bytesRequired);
System\ServiceModel\Channels\FramingEncoders.cs (7)
56int sizeByteCount = IntEncoder.GetEncodedSize(valueByteCount); 60offset += IntEncoder.Encode(valueByteCount, encodedBytes, offset); 194public const int MaxMessageFrameSize = 1 + IntEncoder.MaxEncodedSize; 219int spaceNeeded = 1 + IntEncoder.GetEncodedSize(messageFrame.Count); 229IntEncoder.Encode(messageFrame.Count, buffer, offset); 304int spaceNeeded = IntEncoder.GetEncodedSize(messageFrame.Count); 313IntEncoder.Encode(messageFrame.Count, buffer, offset);
System\ServiceModel\Channels\SingletonConnectionReader.cs (9)
1387this.chunkBuffer = new byte[IntEncoder.MaxEncodedSize]; 1511if (int.MaxValue - chunkBytesRemaining >= IntEncoder.MaxEncodedSize) 1513bytesToRead = Math.Min(count, chunkBytesRemaining + IntEncoder.MaxEncodedSize); 1541if (count < IntEncoder.MaxEncodedSize) 1550int bytesRead = ReadCore(buffer, offset, IntEncoder.MaxEncodedSize); 1641int.MaxValue, settings.BufferManager, envelopeStartBytes.Length + IntEncoder.MaxEncodedSize); 1681this.encodedSize = new byte[IntEncoder.MaxEncodedSize]; 1687int bytesEncoded = IntEncoder.Encode(size, encodedSize, 0); 1788int.MaxValue, this.bufferManager, envelopeStartBytes.Length + IntEncoder.MaxEncodedSize);