Table of Contents

Struct CArrowDeviceArray

Namespace
Apache.Arrow.C
Assembly
Apache.Arrow.dll

An Arrow C Device Data Interface ArrowDeviceArray, which represents an exported array along with the device on which the array data resides.

[Experimental("ArrowDeviceDataApi")]
public struct CArrowDeviceArray
Inherited Members

Remarks

This is used to export IArrowArray or RecordBatch with device information to other languages. It matches the layout of the ArrowDeviceArray struct described in https://arrow.apache.org/docs/format/CDeviceDataInterface.html.

Fields

array

public CArrowArray array

Field Value

CArrowArray

device_id

public long device_id

Field Value

long

device_type

public ArrowDeviceType device_type

Field Value

ArrowDeviceType

sync_event

public void* sync_event

Field Value

void*

Methods

Create()

Allocate and zero-initialize an unmanaged pointer of this type.

public static CArrowDeviceArray* Create()

Returns

CArrowDeviceArray*

Remarks

This pointer must later be freed by Free(CArrowDeviceArray*).

Free(CArrowDeviceArray*)

Free a pointer that was allocated in Create().

public static void Free(CArrowDeviceArray* deviceArray)

Parameters

deviceArray CArrowDeviceArray*

Remarks

Do not call this on a pointer that was allocated elsewhere.