1 write to bytes
System.ServiceModel (1)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (1)
713
this.
bytes
= DiagnosticUtility.Utility.AllocateByteArray(bufferSize);
7 references to bytes
System.ServiceModel (7)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (7)
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));
807
Buffer.BlockCopy(buffer, offset, this.
bytes
, this.position, count);
813
Fx.Assert(this.position < this.
bytes
.Length, "Buffer is full");
816
this.
bytes
[this.position++] = value;
844
IAsyncResult asyncResult = this.stream.BeginWrite(this.
bytes
, 0, bytesToWrite, flushCallback, this);