Class CUDA_MEMCPY3D_PEER.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.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 Detail

      • 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

        public java.nio.ByteBuffer srcHost​(int capacity)
        Returns a ByteBuffer view of the data pointed to by the srcHost field.
        Parameters:
        capacity - the number of elements in the returned buffer
      • 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

        public java.nio.ByteBuffer dstHost​(int capacity)
        Returns a ByteBuffer view of the data pointed to by the dstHost field.
        Parameters:
        capacity - the number of elements in the returned buffer
      • 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.
      • srcMemoryType

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

        public CUDA_MEMCPY3D_PEER.Buffer srcHost​(java.nio.ByteBuffer value)
        Sets the address of the specified ByteBuffer to the srcHost field.
      • dstXInBytes

        public CUDA_MEMCPY3D_PEER.Buffer dstXInBytes​(long value)
        Sets the specified value to the dstXInBytes 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​(java.nio.ByteBuffer value)
        Sets the address of the specified ByteBuffer to the dstHost field.
      • WidthInBytes

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