Class CUmemPoolProps.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUmemPoolProps.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 CUmemPoolProps.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

    • allocType

      public int allocType()
      Returns:
      the value of the allocType field.
    • handleTypes

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

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

      public long win32SecurityAttributes()
      Returns:
      the value of the win32SecurityAttributes field.
    • reserved

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

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

      public CUmemPoolProps.Buffer allocType(int value)
      Sets the specified value to the allocType field.
    • handleTypes

      public CUmemPoolProps.Buffer handleTypes(int value)
      Sets the specified value to the handleTypes field.
    • location

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

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

      public CUmemPoolProps.Buffer win32SecurityAttributes(long value)
      Sets the specified value to the win32SecurityAttributes field.
    • reserved

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

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