Beispiel #1
0
 internal WindowsImplementation(VirtualAllocHandle handle, int byteOffsetIntoHandle, int elementCount)
 {
     _handle = handle;
     _byteOffsetIntoHandle = byteOffsetIntoHandle;
     _elementCount         = elementCount;
     _memoryManager        = new BoundedMemoryManager(this);
 }
Beispiel #2
0
 public UnixImplementation(int elementCount)
 {
     _handle        = AllocHGlobalHandle.Allocate(checked (elementCount * (nint)sizeof(T)));
     _elementCount  = elementCount;
     _memoryManager = new BoundedMemoryManager(this);
 }