mirror of
https://github.com/snltty/linker.git
synced 2025-10-28 03:13:15 +08:00
22 lines
647 B
C#
22 lines
647 B
C#
using System;
|
|
|
|
namespace cmonitor.libs
|
|
{
|
|
//1 attr + 8 version + 4 klen + key + 4 vlen + val
|
|
internal interface IShareMemory
|
|
{
|
|
public bool Init();
|
|
|
|
public byte ReadByte(int position);
|
|
public void WriteByte(int position, byte value);
|
|
public int ReadInt(int position);
|
|
public void WriteInt(int position, int value);
|
|
|
|
public long ReadInt64(int position);
|
|
public void WriteInt64(int position, long value);
|
|
|
|
public void ReadArray(int position, byte[] bytes, int offset, int length);
|
|
public void WriteArray(int position, byte[] data, int offset, int length);
|
|
}
|
|
}
|