T
- The type parameterpublic class TypedPointer<T extends NppType>
extends jcuda.Pointer
Pointer
that has
a type parameter.Constructor and Description |
---|
TypedPointer()
Creates a new (null) typed pointer.
|
Modifier and Type | Method and Description |
---|---|
static <S extends NppType> |
from(jcuda.Pointer pointer)
Create a new typed pointer from the given
Pointer |
static <S extends NppType> |
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
|
public static <S extends NppType> TypedPointer<S> from(jcuda.Pointer pointer)
Pointer
S
- The typepointer
- The pointerpublic static <S extends NppType> TypedPointer<S> to(java.nio.ByteBuffer buffer)
S
- The typebuffer
- The bufferpublic static TypedPointer<Npp8u> to8u(byte[] array)
array
- The arraypublic static TypedPointer<Npp8s> to8s(byte[] array)
array
- The arraypublic static TypedPointer<Npp16u> to16u(short[] array)
array
- The arraypublic static TypedPointer<Npp16s> to16s(short[] array)
array
- The arraypublic static TypedPointer<Npp32u> to32u(int[] array)
array
- The arraypublic static TypedPointer<Npp32s> to32s(int[] array)
array
- The arraypublic static TypedPointer<Npp64u> to64u(long[] array)
array
- The arraypublic static TypedPointer<Npp64s> to64s(long[] array)
array
- The arraypublic static TypedPointer<Npp32f> to32f(float[] array)
array
- The arraypublic static TypedPointer<Npp64f> to64f(double[] array)
array
- The arraypublic TypedPointer<T> withByteOffset(long byteOffset)
withByteOffset
in class jcuda.Pointer
byteOffset
- The byte offset for the pointer