Fan.Sys.OutStream.writeChars C# (CSharp) Method

writeChars() public method

public writeChars ( string s, int off, int len ) : OutStream
s string
off int
len int
return 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

コード例 #1
0
ファイル: Err.cs プロジェクト: syatanic/fantom
        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