Struct AlignedAllocation
Aligned memory allocation helper
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
public struct AlignedAllocation
Properties
Aligned
The aligned pointer
Declaration
public IntPtr Aligned { get; }
Property Value
| Type | Description |
|---|---|
| System.IntPtr |
AllocatedSize
Total allocated size
Declaration
public long AllocatedSize { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Methods
Alloc(Int64, Int32)
Allocates aligned memory
Declaration
public static AlignedAllocation Alloc(long size, int alignment)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | size | Amount of bytes to allocate |
| System.Int32 | alignment | Alignement |
Returns
| Type | Description |
|---|---|
| AlignedAllocation |
Free()
Releases allocated memory
Declaration
public void Free()