Show / Hide Table of Contents

Struct alignedstorage_int

A IntResidentArray with memory aligned to 32

Implements
ICustomMarshalled
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<int>")]
[ICustomMarshalledSize(8)]
public struct alignedstorage_int : ICustomMarshalled

Constructors

alignedstorage_int(Int32)

constructor

Declaration
public alignedstorage_int(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 aligned index

Declaration
public int this[alignedindex idx]
{
    [IntrinsicFunction("get_Item", IsNaked = true, IsMember = true)]
    get;
    set;
}
Parameters
Type Name Description
alignedindex idx
Property Value
Type Description
System.Int32

Item[Int32]

indexer using raw int -- should not be used

Declaration
public int this[int idx] { get; set; }
Parameters
Type Name Description
System.Int32 idx
Property Value
Type Description
System.Int32

Size

Size in bytes

Declaration
public int Size
{
    [HybridizerIgnore]
    get;
}
Property Value
Type Description
System.Int32

Methods

CopyFrom(alignedstorage_int, Int32)

copy memory from src

Declaration
public void CopyFrom(alignedstorage_int src, int size)
Parameters
Type Name Description
alignedstorage_int src
System.Int32 size

destroy()

releases memory

Declaration
public void destroy()

MarshalTo(BinaryWriter, HybridizerFlavor)

Marshal 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)

Unmarshal from native

Declaration
public void UnmarshalFrom(BinaryReader br, HybridizerFlavor flavor)
Parameters
Type Name Description
System.IO.BinaryReader br
HybridizerFlavor flavor

Implements

ICustomMarshalled
Back to top Generated by DocFX