Package org.bytedeco.cuda.cudart
Class cudaExternalMemoryHandleDesc
- java.lang.Object
-
- org.bytedeco.javacpp.Pointer
-
- org.bytedeco.cuda.cudart.cudaExternalMemoryHandleDesc
-
- All Implemented Interfaces:
AutoCloseable
@Properties(inherit=cudart.class) public class cudaExternalMemoryHandleDesc extends Pointer
External memory handle descriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
-
Constructor Summary
Constructors Constructor Description cudaExternalMemoryHandleDesc()Default native constructor.cudaExternalMemoryHandleDesc(long size)Native array allocator.cudaExternalMemoryHandleDesc(Pointer p)Pointer cast constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intflags()Flags must either be zero or ::cudaExternalMemoryDedicatedcudaExternalMemoryHandleDescflags(int setter)cudaExternalMemoryHandleDescgetPointer(long i)inthandle_fd()File descriptor referencing the memory object.cudaExternalMemoryHandleDeschandle_fd(int setter)Pointerhandle_nvSciBufObject()A handle representing NvSciBuf Object.cudaExternalMemoryHandleDeschandle_nvSciBufObject(Pointer setter)Pointerhandle_win32_handle()Valid NT handle.cudaExternalMemoryHandleDeschandle_win32_handle(Pointer setter)Pointerhandle_win32_name()Name of a valid memory object.cudaExternalMemoryHandleDeschandle_win32_name(Pointer setter)cudaExternalMemoryHandleDescposition(long position)longsize()Size of the memory allocationcudaExternalMemoryHandleDescsize(long setter)inttype()Type of the handlecudaExternalMemoryHandleDesctype(int setter)-
Methods inherited from class org.bytedeco.javacpp.Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
-
-
-
Constructor Detail
-
cudaExternalMemoryHandleDesc
public cudaExternalMemoryHandleDesc()
Default native constructor.
-
cudaExternalMemoryHandleDesc
public cudaExternalMemoryHandleDesc(long size)
Native array allocator. Access withPointer.position(long).
-
cudaExternalMemoryHandleDesc
public cudaExternalMemoryHandleDesc(Pointer p)
Pointer cast constructor. InvokesPointer(Pointer).
-
-
Method Detail
-
position
public cudaExternalMemoryHandleDesc position(long position)
-
getPointer
public cudaExternalMemoryHandleDesc getPointer(long i)
- Overrides:
getPointerin classPointer
-
type
@Cast("cudaExternalMemoryHandleType") public int type()
Type of the handle
-
type
public cudaExternalMemoryHandleDesc type(int setter)
-
handle_fd
@Name("handle.fd") public int handle_fd()
File descriptor referencing the memory object. Valid when type is ::cudaExternalMemoryHandleTypeOpaqueFd
-
handle_fd
public cudaExternalMemoryHandleDesc handle_fd(int setter)
-
handle_win32_handle
@Name("handle.win32.handle") public Pointer handle_win32_handle()
Valid NT handle. Must be NULL if 'name' is non-NULL
-
handle_win32_handle
public cudaExternalMemoryHandleDesc handle_win32_handle(Pointer setter)
-
handle_win32_name
@Name("handle.win32.name") @Const public Pointer handle_win32_name()
Name of a valid memory object. Must be NULL if 'handle' is non-NULL.
-
handle_win32_name
public cudaExternalMemoryHandleDesc handle_win32_name(Pointer setter)
-
handle_nvSciBufObject
@Name("handle.nvSciBufObject") @Const public Pointer handle_nvSciBufObject()
A handle representing NvSciBuf Object. Valid when type is ::cudaExternalMemoryHandleTypeNvSciBuf
-
handle_nvSciBufObject
public cudaExternalMemoryHandleDesc handle_nvSciBufObject(Pointer setter)
-
size
@Cast("unsigned long long") public long size()
Size of the memory allocation
-
size
public cudaExternalMemoryHandleDesc size(long setter)
-
flags
@Cast("unsigned int") public int flags()
Flags must either be zero or ::cudaExternalMemoryDedicated
-
flags
public cudaExternalMemoryHandleDesc flags(int setter)
-
-