|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcuda.NativePointerObject
jcuda.Pointer
jcuda.jnpp.TypedPointer<T>
T
- The type parameterpublic class TypedPointer<T extends NppType>
A typed pointer, that is, a usual Pointer
that has
a type parameter.
Constructor Summary | |
---|---|
TypedPointer()
Creates a new (null) typed pointer. |
Method Summary | ||
---|---|---|
static
|
from(jcuda.Pointer pointer)
Create a new typed pointer from the given Pointer |
|
static
|
to(java.nio.ByteBuffer buffer)
Creates a new typed pointer to the given buffer. |
|
static TypedPointer<Npp16s> |
to16s(short[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp16u> |
to16u(short[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp32f> |
to32f(float[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp32s> |
to32s(int[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp32u> |
to32u(int[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp64f> |
to64f(double[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp64s> |
to64s(long[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp64u> |
to64u(long[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp8s> |
to8s(byte[] array)
Creates a new typed pointer to the given array |
|
static TypedPointer<Npp8u> |
to8u(byte[] array)
Creates a new typed pointer to the given array |
|
TypedPointer<T> |
withByteOffset(long byteOffset)
Returns a new typed pointer with an offset of the given number of bytes |
Methods inherited from class jcuda.Pointer |
---|
getByteBuffer, getByteOffset, to, to, to, to, to, to, to, to, to, toBuffer, toString |
Methods inherited from class jcuda.NativePointerObject |
---|
equals, getNativePointer, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypedPointer()
Method Detail |
---|
public static <S extends NppType> TypedPointer<S> from(jcuda.Pointer pointer)
Pointer
S
- The typepointer
- The pointer
public static <S extends NppType> TypedPointer<S> to(java.nio.ByteBuffer buffer)
S
- The typebuffer
- The buffer
public static TypedPointer<Npp8u> to8u(byte[] array)
array
- The array
public static TypedPointer<Npp8s> to8s(byte[] array)
array
- The array
public static TypedPointer<Npp16u> to16u(short[] array)
array
- The array
public static TypedPointer<Npp16s> to16s(short[] array)
array
- The array
public static TypedPointer<Npp32u> to32u(int[] array)
array
- The array
public static TypedPointer<Npp32s> to32s(int[] array)
array
- The array
public static TypedPointer<Npp64u> to64u(long[] array)
array
- The array
public static TypedPointer<Npp64s> to64s(long[] array)
array
- The array
public static TypedPointer<Npp32f> to32f(float[] array)
array
- The array
public static TypedPointer<Npp64f> to64f(double[] array)
array
- The array
public TypedPointer<T> withByteOffset(long byteOffset)
withByteOffset
in class jcuda.Pointer
byteOffset
- The byte offset for the pointer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |