Struct alignedstorage_float
A FloatResidentArray with underlying memory aligned to 32
Implements
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
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
[IntrinsicType("hybridizer::alignedstorage<float>")]
[ICustomMarshalledSize(8)]
public struct alignedstorage_float : ICustomMarshalled
Constructors
alignedstorage_float(Int32)
constructor
Declaration
public alignedstorage_float(int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size |
Properties
HostPointer
Host Pointer
Declaration
[HybridizerIgnore]
public IntPtr HostPointer { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Item[alignedindex]
indexer using alignedindex
Declaration
public float this[alignedindex idx]
{
[IntrinsicFunction("get_Item", IsNaked = true, IsMember = true)]
get;
set;
}
Parameters
Type | Name | Description |
---|---|---|
alignedindex | idx |
Property Value
Type | Description |
---|---|
System.Single |
Item[Int32]
index using raw int -- should not be used
Declaration
public float this[int idx] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | idx |
Property Value
Type | Description |
---|---|
System.Single |
Size
Size in bytes
Declaration
public int Size
{
[HybridizerIgnore]
get;
}
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
CopyFrom(alignedstorage_float, Int32)
copy memory from src
Declaration
public void CopyFrom(alignedstorage_float src, int size)
Parameters
Type | Name | Description |
---|---|---|
alignedstorage_float | src | |
System.Int32 | size |
destroy()
releases memory
Declaration
public void destroy()
MarshalTo(BinaryWriter, HybridizerFlavor)
marshals to native
Declaration
public void MarshalTo(BinaryWriter bw, HybridizerFlavor flavor)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryWriter | bw | |
HybridizerFlavor | flavor |
ToString()
A string representation
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
UnmarshalFrom(BinaryReader, HybridizerFlavor)
unmarshals from native
Declaration
public void UnmarshalFrom(BinaryReader br, HybridizerFlavor flavor)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryReader | br | |
HybridizerFlavor | flavor |