Struct alignedstorage_double_zerocopy
A alignedstorage_double using zero-copy
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<double>")]
[ICustomMarshalledSize(8)]
public struct alignedstorage_double_zerocopy : ICustomMarshalled
Constructors
alignedstorage_double_zerocopy(Int32, Object)
constructor
Declaration
public alignedstorage_double_zerocopy(int size, object source = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size | |
System.Object | source |
Properties
HostPointer
Host Pointer
Declaration
[HybridizerIgnore]
public IntPtr HostPointer { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Item[alignedindex]
indexer using alignedindex
Declaration
public double this[alignedindex idx]
{
[IntrinsicFunction("get_Item", IsNaked = true, IsMember = true)]
get;
set;
}
Parameters
Type | Name | Description |
---|---|---|
alignedindex | idx |
Property Value
Type | Description |
---|---|
System.Double |
Item[Int32]
indexer using raw int -- should not be used
Declaration
public double this[int idx] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | idx |
Property Value
Type | Description |
---|---|
System.Double |
Size
Size in bytes
Declaration
public int Size
{
[HybridizerIgnore]
get;
}
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
CopyFrom(alignedstorage_double, Int32)
copies memory from src
Declaration
public void CopyFrom(alignedstorage_double src, int size)
Parameters
Type | Name | Description |
---|---|---|
alignedstorage_double | 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
Declaration
public void UnmarshalFrom(BinaryReader br, HybridizerFlavor flavor)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryReader | br | |
HybridizerFlavor | flavor |