Table of Contents

Struct OpenCLTypes.Event

Namespace
DotCompute.Backends.OpenCL.Types.Native
Assembly
DotCompute.Backends.OpenCL.dll

Type alias for OpenCLEventHandle.

[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Event", Justification = "Backward compatibility wrapper")]
public readonly struct OpenCLTypes.Event : IEquatable<OpenCLTypes.Event>
Implements
Inherited Members

Constructors

Event(nint)

public Event(nint handle)

Parameters

handle nint

Properties

Handle

public nint Handle { get; }

Property Value

nint

Methods

Equals(Event)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(OpenCLTypes.Event other)

Parameters

other OpenCLTypes.Event

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(Event, Event)

public static bool operator ==(OpenCLTypes.Event left, OpenCLTypes.Event right)

Parameters

left OpenCLTypes.Event
right OpenCLTypes.Event

Returns

bool

implicit operator Event(OpenCLEventHandle)

public static implicit operator OpenCLTypes.Event(OpenCLEventHandle evt)

Parameters

evt OpenCLEventHandle

Returns

OpenCLTypes.Event

implicit operator OpenCLEventHandle(Event)

public static implicit operator OpenCLEventHandle(OpenCLTypes.Event evt)

Parameters

evt OpenCLTypes.Event

Returns

OpenCLEventHandle

implicit operator nint(Event)

public static implicit operator nint(OpenCLTypes.Event evt)

Parameters

evt OpenCLTypes.Event

Returns

nint

implicit operator Event(nint)

public static implicit operator OpenCLTypes.Event(nint handle)

Parameters

handle nint

Returns

OpenCLTypes.Event

operator !=(Event, Event)

public static bool operator !=(OpenCLTypes.Event left, OpenCLTypes.Event right)

Parameters

left OpenCLTypes.Event
right OpenCLTypes.Event

Returns

bool