5 writes to chunkBytesRemaining
System.ServiceModel (5)
System\ServiceModel\Channels\SingletonConnectionReader.cs (5)
1386
this.
chunkBytesRemaining
= 0;
1428
this.
chunkBytesRemaining
= decoder.ChunkSize;
1496
this.
chunkBytesRemaining
-= bytesToCopy;
1526
this.
chunkBytesRemaining
= 0;
1533
this.
chunkBytesRemaining
-= bytesRead;
11 references to chunkBytesRemaining
System.ServiceModel (11)
System\ServiceModel\Channels\SingletonConnectionReader.cs (11)
1487
int bytesToCopy = Math.Min(
chunkBytesRemaining
,
1497
if (this.
chunkBytesRemaining
== 0 && this.chunkBufferSize > 0)
1506
else if (
chunkBytesRemaining
> 0)
1511
if (int.MaxValue -
chunkBytesRemaining
>= IntEncoder.MaxEncodedSize)
1513
bytesToRead = Math.Min(count,
chunkBytesRemaining
+ IntEncoder.MaxEncodedSize);
1519
DecodeData(buffer, offset, Math.Min(bytesRead, this.
chunkBytesRemaining
));
1521
if (bytesRead >
chunkBytesRemaining
)
1523
result += this.
chunkBytesRemaining
;
1524
int overflowCount = bytesRead -
chunkBytesRemaining
;
1525
int overflowOffset = offset +
chunkBytesRemaining
;
1563
if (this.chunkBufferSize > 0 || this.
chunkBytesRemaining
> 0