namespace WIDESEAWCS_S7Simulator.Core.Interfaces
{
///
/// 内存区域接口
///
public interface IMemoryRegion : IDisposable
{
///
/// 区域类型(M/DB/I/Q/T/C)
///
string RegionType { get; }
///
/// 区域大小(字节)
///
int Size { get; }
///
/// 读取字节数据
///
/// 偏移量
/// 长度
/// 字节数组
byte[] Read(ushort offset, ushort length);
///
/// 写入字节数据
///
/// 偏移量
/// 数据
void Write(ushort offset, byte[] data);
///
/// 清空区域
///
void Clear();
}
}