private void WriteEncoded(char[] ca, int offset, long length)
 {
     if (_bout == null)
     {
         _bout   = new ByteArrayOutputStream2((int)(2 * length));
         _writer = new BinaryWriter(_bout, __ISO_8859_1);
     }
     else
     {
         _bout.Reset();
     }
     _writer.Write(ca, offset, (int)length);
     _writer.Flush();
     EnsureSpareCapacity(_bout.Length);
     Buffer.BlockCopy(_bout.GetBuffer(), 0, _buf, _size, (int)_bout.Length);
     _size += (int)_bout.Length;
 }