12 references to MaxEncodedSize
System.ServiceModel.NetFramingBase (12)
System\ServiceModel\Channels\FramingEncoders.cs (1)
204
public const int MaxMessageFrameSize = 1 + IntEncoder.
MaxEncodedSize
;
System\ServiceModel\Channels\SingletonConnectionReader.cs (11)
226
_chunkBuffer = new byte[IntEncoder.
MaxEncodedSize
];
375
if (int.MaxValue - _chunkBytesRemaining >= IntEncoder.
MaxEncodedSize
)
377
bytesToRead = Math.Min(count, _chunkBytesRemaining + IntEncoder.
MaxEncodedSize
);
405
if (count < IntEncoder.
MaxEncodedSize
)
414
int bytesRead = ReadCore(buffer, offset, IntEncoder.
MaxEncodedSize
);
479
if (int.MaxValue - _chunkBytesRemaining >= IntEncoder.
MaxEncodedSize
)
481
bytesToRead = Math.Min(count, _chunkBytesRemaining + IntEncoder.
MaxEncodedSize
);
509
if (count < IntEncoder.
MaxEncodedSize
)
518
int bytesRead = await ReadCoreAsync(new Memory<byte>(buffer, offset, IntEncoder.
MaxEncodedSize
));
591
int.MaxValue, settings.BufferManager, envelopeStartBytes.Length + IntEncoder.
MaxEncodedSize
);
618
_encodedSize = new byte[IntEncoder.
MaxEncodedSize
];