Fan.Sys.OutStream.writeChars C# (CSharp) Méthode

writeChars() public méthode

public writeChars ( string s, int off, int len ) : OutStream
s string
off int
len int
Résultat OutStream
        public virtual OutStream writeChars(string s, int off, int len)
        {
            int end = off+len;
              if (m_out != null)
              for (int i = off; i < end; ++i)
            m_out.writeChar(s[i]);
              else
              for (int i = off; i < end; ++i)
            m_charsetEncoder.encode(s[i], this);
              return this;
        }

Same methods

OutStream::writeChars ( string s ) : OutStream
OutStream::writeChars ( string s, long off ) : OutStream
OutStream::writeChars ( string s, long off, long len ) : OutStream

Usage Example

Exemple #1
0
        public static void dumpStack(string msg, Exception err, OutStream @out, int indent)
        {
            StringWriter w = new StringWriter();

            doDumpStack(msg, err, indent, w);
            @out.writeChars(w.ToString()).flush();
        }
All Usage Examples Of Fan.Sys.OutStream::writeChars