Class CUDA_MEMCPY3D_PEER.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUDA_MEMCPY3D_PEER.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_PEER.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.
    • srcContext

      public long srcContext()
      Returns:
      the value of the srcContext 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.
    • dstContext

      public long dstContext()
      Returns:
      the value of the dstContext 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_PEER.Buffer srcXInBytes(long value)
      Sets the specified value to the srcXInBytes field.
    • srcY

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

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

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

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

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

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

      public CUDA_MEMCPY3D_PEER.Buffer srcArray(long value)
      Sets the specified value to the srcArray field.
    • srcContext

      public CUDA_MEMCPY3D_PEER.Buffer srcContext(long value)
      Sets the specified value to the srcContext field.
    • srcPitch

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

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

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

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

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

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

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

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

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

      public CUDA_MEMCPY3D_PEER.Buffer dstArray(long value)
      Sets the specified value to the dstArray field.
    • dstContext

      public CUDA_MEMCPY3D_PEER.Buffer dstContext(long value)
      Sets the specified value to the dstContext field.
    • dstPitch

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

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

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

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

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