public void Dispose() { MemUtil.Free((IntPtr)NativePointer); NativePointer = null; GC.SuppressFinalize(this); }
public MemoryBarrier() { NativePointer = (Unmanaged.MemoryBarrier *)MemUtil.Alloc(typeof(Unmanaged.MemoryBarrier)); NativePointer->SType = StructureType.MemoryBarrier; }