优化内存分享,修复一些问题,新增答题投票功能

This commit is contained in:
snltty
2023-12-07 17:04:06 +08:00
parent a664ee8813
commit 1a62bd809d
181 changed files with 30746 additions and 29234 deletions

View File

@@ -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的动态链接库