System.Net.Connection.Write C# (CSharp) Method

Write() private method

private Write ( ScatterGatherBuffers writeBuffer ) : void
writeBuffer ScatterGatherBuffers
return void
        internal void Write(ScatterGatherBuffers writeBuffer) {
            GlobalLog.Enter("Connection#" + ValidationHelper.HashString(this) + "::Write(ScatterGatherBuffers) networkstream#" + ValidationHelper.HashString(NetworkStream));
            //
            // parameter validation
            //
            GlobalLog.Assert(writeBuffer != null, "Connection#{0}::Write(ScatterGatherBuffers)|writeBuffer == null", ValidationHelper.HashString(this));
            //
            // set up array for MultipleWrite call
            // note that GetBuffers returns null if we never wrote to it.
            //
            BufferOffsetSize[] buffers = writeBuffer.GetBuffers();
            if (buffers!=null) {
                //
                // This will block writing the buffers out.
                //
                MultipleWrite(buffers);
            }
            GlobalLog.Leave("Connection#" + ValidationHelper.HashString(this) + "::Write(ScatterGatherBuffers) this:" + ValidationHelper.HashString(this) + " writeBuffer.Size:" + writeBuffer.Length.ToString());
        }