4 writes to position
System.ServiceModel (4)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (4)
712
this.
position
= 0;
808
this.
position
+= count;
816
this.bytes[this.
position
++] = value;
837
this.
position
= 0;
9 references to position
System.ServiceModel (9)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (9)
732
return this.bytes.Length - this.
position
;
804
Fx.Assert(this.
position
+ count <= this.bytes.Length, string.Format(CultureInfo.InvariantCulture, "Chunk is too big to fit in this buffer. Chunk size={0}, free space={1}", count, this.bytes.Length - this.
position
));
805
Fx.Assert(!this.writePending, string.Format(CultureInfo.InvariantCulture, "The buffer is in use, position={0}", this.
position
));
807
Buffer.BlockCopy(buffer, offset, this.bytes, this.
position
, count);
813
Fx.Assert(this.
position
< this.bytes.Length, "Buffer is full");
814
Fx.Assert(!this.writePending, string.Format(CultureInfo.InvariantCulture, "The buffer is in use, position={0}", this.
position
));
825
if (this.
position
<= 0)
835
int bytesToWrite = this.
position
;