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