JNIpp 1.0
JNI meets C++
java::PrimitiveArray< JType > Class Template Reference

Wrapper for primitive arrays (like int[]). More...

Inheritance diagram for java::PrimitiveArray< JType >:
java::Object jni::AbstractObject

List of all members.

Public Member Functions

 PrimitiveArray (jsize length)
 Creates primitive array of the specified length and wraps it.
 PrimitiveArray (const jni::LObject &array)
 Wraps array.
jsize GetLength () const
 Returns length of the array.
JType GetAt (jsize index) const
 Returns value at the specified index.
void SetAt (jsize index, JType value)
 Sets value at the specified index.
void GetRegion (jsize start, jsize length, JType *buffer) const
 Copies specified region to the buffer.
void SetRegion (jsize start, jsize length, const JType *elements)
 Updates specifies region in the array.

Detailed Description

template<class JType>
class java::PrimitiveArray< JType >

Wrapper for primitive arrays (like int[]).

You don't need to use this class, use typedefs like java::PIntArray instead.