You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
557 B
C#
31 lines
557 B
C#
namespace OPCDA.NET
|
|
{
|
|
using System;
|
|
using System.IO;
|
|
using System.Text;
|
|
|
|
internal class BufWriter : TextWriter
|
|
{
|
|
private string buf = "";
|
|
|
|
internal string GetString()
|
|
{
|
|
return this.buf;
|
|
}
|
|
|
|
public override void Write(char ch)
|
|
{
|
|
this.buf = this.buf + Convert.ToString(ch);
|
|
}
|
|
|
|
public override System.Text.Encoding Encoding
|
|
{
|
|
get
|
|
{
|
|
return System.Text.Encoding.Unicode;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|