Record Class CLMemAndroidNativeBufferHostPtr

java.lang.Object
java.lang.Record
club.doki7.opencl.datatype.CLMemAndroidNativeBufferHostPtr
All Implemented Interfaces:
IPointer, ICLMemAndroidNativeBufferHostPtr

@ValueBasedCandidate @UnsafeConstructor public record CLMemAndroidNativeBufferHostPtr(@NotNull MemorySegment segment) extends Record implements ICLMemAndroidNativeBufferHostPtr

Represents a pointer to a cl_mem_android_native_buffer_host_ptr structure in native memory.

Structure

typedef struct cl_mem_android_native_buffer_host_ptr {
    cl_mem_ext_host_ptr extHostPtr;
    void* anbPtr;
} cl_mem_android_native_buffer_host_ptr;

Contracts

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

See Also:
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$extHostPtr

      public static final MemoryLayout.PathElement PATH$extHostPtr
    • PATH$anbPtr

      public static final MemoryLayout.PathElement PATH$anbPtr
    • LAYOUT$extHostPtr

      public static final StructLayout LAYOUT$extHostPtr
    • LAYOUT$anbPtr

      public static final AddressLayout LAYOUT$anbPtr
    • SIZE$extHostPtr

      public static final long SIZE$extHostPtr
    • SIZE$anbPtr

      public static final long SIZE$anbPtr
    • OFFSET$extHostPtr

      public static final long OFFSET$extHostPtr
    • OFFSET$anbPtr

      public static final long OFFSET$anbPtr
  • Constructor Details

    • CLMemAndroidNativeBufferHostPtr

      public CLMemAndroidNativeBufferHostPtr(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a CLMemAndroidNativeBufferHostPtr record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details