19 references to IntEncoder
System.ServiceModel.NetFramingBase (19)
System\ServiceModel\Channels\FramingEncoders.cs (7)
57
int sizeByteCount =
IntEncoder
.GetEncodedSize(valueByteCount);
61
offset +=
IntEncoder
.Encode(valueByteCount, EncodedBytes.Slice(offset));
204
public const int MaxMessageFrameSize = 1 +
IntEncoder
.MaxEncodedSize;
225
int spaceNeeded = 1 +
IntEncoder
.GetEncodedSize(messageFrame.Count);
235
IntEncoder
.Encode(messageFrame.Count, new Memory<byte>(buffer, offset, spaceNeeded - 1));
310
int spaceNeeded =
IntEncoder
.GetEncodedSize(messageFrame.Count);
319
IntEncoder
.Encode(messageFrame.Count, new Memory<byte>(buffer, offset, spaceNeeded));
System\ServiceModel\Channels\SingletonConnectionReader.cs (12)
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];
625
int bytesEncoded =
IntEncoder
.Encode(size, _encodedSize);