gov.va.medora.mdws.ResponseReader.Write C# (CSharp) Method

Write() public method

The overridden write converts the output to text and caches it in the ResponseString accessor. It finally converts that string back to an array of bytes and writes it back out to the wrapped stream
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void
        public override void Write(byte[] buffer, int offset, int count)
        {
            _responseString = System.Text.Encoding.Default.GetString(buffer, offset, count);
            byte[] b = System.Text.Encoding.Default.GetBytes(_responseString);
            _stream.Write(b, offset, count);
        }