Skip to main content

struct

AddressSpace

Address space of the pointer.

Aliases

  • GENERIC = 0: Generic address space.

Implemented traits

AnyType, Copyable, EqualityComparable, Movable

Methods

__init__

__init__(value: Int) -> Self

Initializes the address space from the underlying integeral value.

Args:

  • value (Int): The address space value.

Returns:

The address space.

__init__(value: _GPUAddressSpace) -> Self

Initializes the address space from the underlying integeral value.

Args:

  • value (_GPUAddressSpace): The address space value.

Returns:

The address space.

__eq__

__eq__(self: Self, other: Self) -> Bool

True if the two address spaces are equal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are equal and False otherwise.

__ne__

__ne__(self: Self, other: Self) -> Bool

True if the two address spaces are inequal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are inequal and False otherwise.

value

value(self: Self) -> Int

The integral value of the address space.

Returns:

The integral value of the address space.

__int__

__int__(self: Self) -> Int

The integral value of the address space.

Returns:

The integral value of the address space.