Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void
Example #1
0
        public override void Write(char [] buffer, int index, int count)
        {
            if (buffer == null || index < 0 || count < 0 || (buffer.Length - index) < count)
            {
                throw new ArgumentOutOfRangeException();
            }
            int length = encoding.GetMaxByteCount(count);

            byte [] bytebuffer = GetByteBuffer(length);
            int     realLength = encoding.GetBytes(buffer, index, count, bytebuffer, 0);

            output_stream.Write(bytebuffer, 0, realLength);
            if (response.buffer)
            {
                return;
            }

            response.Flush();
        }
Example #2
0
 public void BinaryWrite(byte [] buffer)
 {
     output_stream.Write(buffer, 0, buffer.Length);
 }
Example #3
0
 public override void Write(byte [] buffer, int offset, int count)
 {
     stream.Write(buffer, offset, count);
 }