コード例 #1
0
 internal WindowsImplementation(VirtualAllocHandle handle, int byteOffsetIntoHandle, int elementCount)
 {
     _handle = handle;
     _byteOffsetIntoHandle = byteOffsetIntoHandle;
     _elementCount         = elementCount;
     _memoryManager        = new BoundedMemoryManager(this);
 }
コード例 #2
0
ファイル: BoundedMemory.Unix.cs プロジェクト: z77ma/runtime
 public UnixImplementation(int elementCount)
 {
     _handle        = AllocHGlobalHandle.Allocate(checked (elementCount * (nint)sizeof(T)));
     _elementCount  = elementCount;
     _memoryManager = new BoundedMemoryManager(this);
 }