mirror of
https://github.com/snltty/linker.git
synced 2025-10-29 11:42:10 +08:00
优化内存分享,修复一些问题,新增答题投票功能
This commit is contained in:
@@ -94,6 +94,23 @@ namespace cmonitor.libs
|
||||
}
|
||||
}
|
||||
|
||||
public long ReadInt64(int position)
|
||||
{
|
||||
if (shmPtr != IntPtr.Zero)
|
||||
{
|
||||
return Marshal.ReadInt64(shmPtr + position);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void WriteInt64(int position, long value)
|
||||
{
|
||||
if (shmPtr != IntPtr.Zero)
|
||||
{
|
||||
Marshal.WriteInt64(shmPtr + position, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 导入Linux的动态链接库
|
||||
|
||||
Reference in New Issue
Block a user