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.
29 lines
532 B
C#
29 lines
532 B
C#
namespace OPCDA.NET
|
|
{
|
|
using System;
|
|
using System.IO;
|
|
|
|
internal class BufReader : TextReader
|
|
{
|
|
private string buf;
|
|
private int pos = 0;
|
|
|
|
internal BufReader(string text)
|
|
{
|
|
this.buf = text;
|
|
}
|
|
|
|
public override int Read()
|
|
{
|
|
if (this.pos >= this.buf.Length)
|
|
{
|
|
return -1;
|
|
}
|
|
int num = Convert.ToInt32(this.buf[this.pos]);
|
|
this.pos++;
|
|
return num;
|
|
}
|
|
}
|
|
}
|
|
|