Class CUmemAllocationProp.Buffer

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUmemAllocationProp.Buffer>
org.lwjgl.system.StructBuffer<CUmemAllocationProp,CUmemAllocationProp.Buffer>
org.lwjgl.cuda.CUmemAllocationProp.Buffer
All Implemented Interfaces:
AutoCloseable, Iterable<CUmemAllocationProp>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Enclosing class:
CUmemAllocationProp

public static class CUmemAllocationProp.Buffer extends org.lwjgl.system.StructBuffer<CUmemAllocationProp,CUmemAllocationProp.Buffer> implements org.lwjgl.system.NativeResource
An array of CUmemAllocationProp structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUmemAllocationProp.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CUmemAllocationProp.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • type

      public int type()
      Returns:
      the value of the type field.
    • requestedHandleTypes

      public int requestedHandleTypes()
      Returns:
      the value of the requestedHandleTypes field.
    • location

      public CUmemLocation location()
      Returns:
      a CUmemLocation view of the location field.
    • win32HandleMetaData

      public long win32HandleMetaData()
      Returns:
      the value of the win32HandleMetaData field.
    • allocFlags_compressionType

      public byte allocFlags_compressionType()
      Returns:
      the value of the allocFlags.compressionType field.
    • allocFlags_gpuDirectRDMACapable

      public byte allocFlags_gpuDirectRDMACapable()
      Returns:
      the value of the allocFlags.gpuDirectRDMACapable field.
    • allocFlags_usage

      public short allocFlags_usage()
      Returns:
      the value of the allocFlags.usage field.
    • allocFlags_reserved

      public ByteBuffer allocFlags_reserved()
      Returns:
      a ByteBuffer view of the allocFlags.reserved field.
    • allocFlags_reserved

      public byte allocFlags_reserved(int index)
      Returns:
      the value at the specified index of the allocFlags.reserved field.
    • type

      public CUmemAllocationProp.Buffer type(int value)
      Sets the specified value to the type field.
    • requestedHandleTypes

      public CUmemAllocationProp.Buffer requestedHandleTypes(int value)
      Sets the specified value to the requestedHandleTypes field.
    • location

      public CUmemAllocationProp.Buffer location(CUmemLocation value)
      Copies the specified CUmemLocation to the location field.
    • location

      public CUmemAllocationProp.Buffer location(Consumer<CUmemLocation> consumer)
      Passes the location field to the specified Consumer.
    • win32HandleMetaData

      public CUmemAllocationProp.Buffer win32HandleMetaData(long value)
      Sets the specified value to the win32HandleMetaData field.
    • allocFlags_compressionType

      public CUmemAllocationProp.Buffer allocFlags_compressionType(byte value)
      Sets the specified value to the compressionType field.
    • allocFlags_gpuDirectRDMACapable

      public CUmemAllocationProp.Buffer allocFlags_gpuDirectRDMACapable(byte value)
      Sets the specified value to the gpuDirectRDMACapable field.
    • allocFlags_usage

      public CUmemAllocationProp.Buffer allocFlags_usage(short value)
      Sets the specified value to the usage field.
    • allocFlags_reserved

      public CUmemAllocationProp.Buffer allocFlags_reserved(ByteBuffer value)
      Copies the specified ByteBuffer to the reserved field.
    • allocFlags_reserved

      public CUmemAllocationProp.Buffer allocFlags_reserved(int index, byte value)
      Sets the specified value at the specified index of the reserved field.