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.

38 lines
846 B
C#

2 months ago
using System;
using System.IO;
using System.Data;
using Mesnac.Equips;
using Mesnac.Equips.BaseInfo;
using System.Runtime.InteropServices;
using System.Data.SqlClient;
namespace Mesnac.Equip.ConfigInfo.Test.Default
{
public class Equip : BaseEquip
{
public override bool Open()
{
return true;
}
int iPost = 0;
public override bool Read(string block, int start, int len, out object[] buff)
{
if (iPost >= int.MaxValue - 10)
{
iPost = 0;
}
iPost++;
buff = new object[1] { iPost };
return true;
}
public override bool Write(int block, int start, object[] buff)
{
return false;
}
public override void Close()
{
}
}
}