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