mirror of
https://github.com/snltty/linker.git
synced 2025-10-28 19:31:50 +08:00
18 lines
464 B
C#
18 lines
464 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace cmonitor.share.lib
|
|
{
|
|
public static class ShareMemoryFactory
|
|
{
|
|
public static IShareMemory Create(string key, int length, int itemSize)
|
|
{
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
{
|
|
return new ShareMemoryWindows(key, length, itemSize);
|
|
}
|
|
|
|
return new ShareMemoryWindows(key, length, itemSize);
|
|
}
|
|
}
|
|
}
|