Class CUDA_MEMCPY3D.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<CUDA_MEMCPY3D>, NativeResource, Pointer
Enclosing class:
CUDA_MEMCPY3D

public static class CUDA_MEMCPY3D.Buffer extends StructBuffer<CUDA_MEMCPY3D,CUDA_MEMCPY3D.Buffer> implements NativeResource
An array of CUDA_MEMCPY3D structs.
  • Constructor Details

    • Buffer

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

    • srcXInBytes

      public long srcXInBytes()
      Returns:
      the value of the srcXInBytes field.
    • srcY

      public long srcY()
      Returns:
      the value of the srcY field.
    • srcZ

      public long srcZ()
      Returns:
      the value of the srcZ field.
    • srcLOD

      public long srcLOD()
      Returns:
      the value of the srcLOD field.
    • srcMemoryType

      public int srcMemoryType()
      Returns:
      the value of the srcMemoryType field.
    • srcHost

      @Nullable public ByteBuffer srcHost(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a ByteBuffer view of the data pointed to by the srcHost field.
    • srcDevice

      public long srcDevice()
      Returns:
      the value of the srcDevice field.
    • srcArray

      public long srcArray()
      Returns:
      the value of the srcArray field.
    • reserved0

      public long reserved0()
      Returns:
      the value of the reserved0 field.
    • srcPitch

      public long srcPitch()
      Returns:
      the value of the srcPitch field.
    • srcHeight

      public long srcHeight()
      Returns:
      the value of the srcHeight field.
    • dstXInBytes

      public long dstXInBytes()
      Returns:
      the value of the dstXInBytes field.
    • dstY

      public long dstY()
      Returns:
      the value of the dstY field.
    • dstZ

      public long dstZ()
      Returns:
      the value of the dstZ field.
    • dstLOD

      public long dstLOD()
      Returns:
      the value of the dstLOD field.
    • dstMemoryType

      public int dstMemoryType()
      Returns:
      the value of the dstMemoryType field.
    • dstHost

      @Nullable public ByteBuffer dstHost(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a ByteBuffer view of the data pointed to by the dstHost field.
    • dstDevice

      public long dstDevice()
      Returns:
      the value of the dstDevice field.
    • dstArray

      public long dstArray()
      Returns:
      the value of the dstArray field.
    • reserved1

      public long reserved1()
      Returns:
      the value of the reserved1 field.
    • dstPitch

      public long dstPitch()
      Returns:
      the value of the dstPitch field.
    • dstHeight

      public long dstHeight()
      Returns:
      the value of the dstHeight field.
    • WidthInBytes

      public long WidthInBytes()
      Returns:
      the value of the WidthInBytes field.
    • Height

      public long Height()
      Returns:
      the value of the Height field.
    • Depth

      public long Depth()
      Returns:
      the value of the Depth field.
    • srcXInBytes

      public CUDA_MEMCPY3D.Buffer srcXInBytes(long value)
      Sets the specified value to the srcXInBytes field.
    • srcY

      public CUDA_MEMCPY3D.Buffer srcY(long value)
      Sets the specified value to the srcY field.
    • srcZ

      public CUDA_MEMCPY3D.Buffer srcZ(long value)
      Sets the specified value to the srcZ field.
    • srcLOD

      public CUDA_MEMCPY3D.Buffer srcLOD(long value)
      Sets the specified value to the srcLOD field.
    • srcMemoryType

      public CUDA_MEMCPY3D.Buffer srcMemoryType(int value)
      Sets the specified value to the srcMemoryType field.
    • srcHost

      public CUDA_MEMCPY3D.Buffer srcHost(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the srcHost field.
    • srcDevice

      public CUDA_MEMCPY3D.Buffer srcDevice(long value)
      Sets the specified value to the srcDevice field.
    • srcArray

      public CUDA_MEMCPY3D.Buffer srcArray(long value)
      Sets the specified value to the srcArray field.
    • reserved0

      public CUDA_MEMCPY3D.Buffer reserved0(long value)
      Sets the specified value to the reserved0 field.
    • srcPitch

      public CUDA_MEMCPY3D.Buffer srcPitch(long value)
      Sets the specified value to the srcPitch field.
    • srcHeight

      public CUDA_MEMCPY3D.Buffer srcHeight(long value)
      Sets the specified value to the srcHeight field.
    • dstXInBytes

      public CUDA_MEMCPY3D.Buffer dstXInBytes(long value)
      Sets the specified value to the dstXInBytes field.
    • dstY

      public CUDA_MEMCPY3D.Buffer dstY(long value)
      Sets the specified value to the dstY field.
    • dstZ

      public CUDA_MEMCPY3D.Buffer dstZ(long value)
      Sets the specified value to the dstZ field.
    • dstLOD

      public CUDA_MEMCPY3D.Buffer dstLOD(long value)
      Sets the specified value to the dstLOD field.
    • dstMemoryType

      public CUDA_MEMCPY3D.Buffer dstMemoryType(int value)
      Sets the specified value to the dstMemoryType field.
    • dstHost

      public CUDA_MEMCPY3D.Buffer dstHost(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the dstHost field.
    • dstDevice

      public CUDA_MEMCPY3D.Buffer dstDevice(long value)
      Sets the specified value to the dstDevice field.
    • dstArray

      public CUDA_MEMCPY3D.Buffer dstArray(long value)
      Sets the specified value to the dstArray field.
    • reserved1

      public CUDA_MEMCPY3D.Buffer reserved1(long value)
      Sets the specified value to the reserved1 field.
    • dstPitch

      public CUDA_MEMCPY3D.Buffer dstPitch(long value)
      Sets the specified value to the dstPitch field.
    • dstHeight

      public CUDA_MEMCPY3D.Buffer dstHeight(long value)
      Sets the specified value to the dstHeight field.
    • WidthInBytes

      public CUDA_MEMCPY3D.Buffer WidthInBytes(long value)
      Sets the specified value to the WidthInBytes field.
    • Height

      public CUDA_MEMCPY3D.Buffer Height(long value)
      Sets the specified value to the Height field.
    • Depth

      public CUDA_MEMCPY3D.Buffer Depth(long value)
      Sets the specified value to the Depth field.